Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Has anyone ever had the problem.....

Status
Not open for further replies.

JazzLeg

Programmer
Aug 22, 2002
63
GB
Hi,

I have coded an ASP page to send emails with HTML content with attachments. The email and attachments are sending ok. My problem is that when I choose to add attachments, the message is delivered in text rather than HTML. Without adding attachments (using the same pages) the message is delivered in HTML.

I've set the content type as follows:

Mailer.ContentType = "text/html"

I'm confused.

Thanks

 
Not sure if this is the problem but add this line on your code


Set objMsg = Server.CreateObject("CDONTS.NewMail")

objMsg.From = strFrom
objMsg.To = strTo
objMsg.Subject = strSubject
objMsg.Body = strBody
objMsg.MailFormat = cdoMailFormatMime
objMsg.BodyFormat = cdoBodyFormatHTML


objMsg.Send

Set objMsg = Nothing
[tt]
"The only ideas that will work for you are the ones you put to work."
[/tt]

banana.gif
rockband.gif
banana.gif

 
I'm using ASP mail or Jmail, I think it has a few names, however, the format is slightly different to CDONTS mail.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top