hello all,
how can we send an html formatted email which has word ATTACHMENT ???
(is it possible)
how can we send an html formatted email which has word ATTACHMENT ???
(is it possible)
Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From="mymail@mydomain.com" myMail.To="yourmail@mydomain.com" myMail.CreateMHTMLBody "[url="http://www.w3schools.com/asp/"]http://www.w3schools.com/asp/[/url]" myMail.AddAttachment "C:\AttachmentFile.txt" myMail.Send set myMail=nothing
jobcode=TRIM(Request.Form("jobcode")) jobcategory=TRIM(Request.Form("jobid")) name=TRIM(Request.Form("f_name"))&" "&TRIM(Request.Form("m_name"))&" "&TRIM(Request.Form("l_name")) sex=TRIM(Request.Form("gender")) M_status=TRIM(Request.Form("optMarital")) strbody = "<font face='verdana' size=2>" strbody = strbody & "<BR><B>Job Code</B> : "&jobcode&" <br>" strbody = strbody & "<BR><B>Job Category</B> : "&jobcategory&" <br>" strbody = strbody & "<BR><B>Name</B> : "&name&" <br>" strbody = strbody & "<BR><B>Gender</B> : "&sex&" <br>"
Mailer.BodyText = strBody Mailer.AddAttachment(...........)
Mailer.ContentType = "text/html" Mailer.BodyText = strBody Mailer.AddAttachment "AttachmentFile.txt"
Set myMail=CreateObject("CDO.Message") myMail.Subject="Sending email with CDO" myMail.From=[email="mymail@mydomain.com"]mymail@mydomain.com[/email] myMail.To=[email="yourmail@mydomain.com"]yourmail@mydomain.com[/email] myMail.HTMLBody = strBody myMail.AddAttachment "C:\AttachmentFile.txt" myMail.Send set myMail=nothing
Mailer.FromName = Mailer.FromAddress = Mailer.RemoteHost = Mailer.ReturnReceipt = true Mailer.ConfirmRead = false Mailer.Priority = 0 Mailer.Subject = subject Mailer.ContentType = "text/html" Mailer.BodyText = strBody Mailer.ClearRecipients Mailer.AddRecipient Mailer.AddRecipient Mailer.AddAttachment Mailer.SendMail
Comment