Saturday, March 24, 2012
HTML E-Mail with HTML Form ??
Do you know if it's possible to send an HTML E-Mail with an HTML Form
(<form></form>) embedded in it??
And if so, will Outlook (a) render the form properly and (b) allow you
to submit the form normally?
Thanks!!> Do you know if it's possible to send an HTML E-Mail with an HTML Form
> (<form></form>) embedded in it??
Yes, you can include the form and the send will work.
> And if so, will Outlook (a) render the form properly and (b) allow you
> to submit the form normally?
It depends on the user's security settings and which version of outlook they
are using. (It should work for most.)
Sincerely,
--
S. Justin Gengo, MCP
Web Developer
Free code library at:
www.aboutfortunate.com
"Out of chaos comes order."
Nietzche
"Glen" <gfergo@.henryschein.com> wrote in message
news:58841151.0311131004.22e96081@.posting.google.c om...
> Hi,
> Do you know if it's possible to send an HTML E-Mail with an HTML Form
> (<form></form>) embedded in it??
> And if so, will Outlook (a) render the form properly and (b) allow you
> to submit the form normally?
> Thanks!!
html email not sending properly
Am I doing something wrong? All my other emails seem to send fine.
Thanks for any assistance.
mike123
hello,Dim objMail As New MailMessage()
objMail.BodyFormat = MailFormat.Html
SmtpMail.Send("bob@dotnet.itags.org.hotmail.com", "admin@dotnet.itags.org.123.com", "subject", "<html><body><br><br>Username: <a href='http://www.123.com/a.aspx?userID=" & CStr(Session("id#")) & "' target='_blank'>" & CStr(Session("id")) & "</a><br><br>" & Request.Form("message") & "</body></html>")
objMail = Nothing
The way you are using the SmtpMail.Send would ignore objmail making it obsolete and useless...
try:
Dim objMail As New MailMessage()objMail.BodyFormat = MailFormat.Html
objMail.To = "whoever@.mail.com"
objMail.From = "whoeveritsfrom@.mail.com"objMail.Subject = "Subject Line"
objMail.Body = "<html><body>YOUR HTML HERE</BODY></HTML
SmtpMail.Send(objMail)objMail = Nothing
Hope that helps
The version of SmtpMail.Send you are calling is only a shortcut that sends its own mail message. Under the covers, it creates a MailMessage object, fills it with the parameters you passed in, and sends it. So, it does not use the MailMessage object you created just before calling SmtpMail.Send. And, this method assumes the body type is text.
Instead, you should fill in the MailMessage object you created, and pass it into SmtpMail.Send, as follows:
Dim objMail as New MailMessage()
objMail.BodyFormat = MailFormat.Html
objMail.From = "bob@.hotmail.com"
objMail.To = "admin@.123.com"
objMail.Subject = "subject"
objMail.Body = "......"
SmtpMail.Send(objMail)
awesome, thanks!