Emailing HTML/Hotmail problem

R

Ryan

I have code that emails an html document where as the email is in html
format... (and not an attachment)
objMessage.From = astrEmailFrom
objMessage.Subject = astrEmailSubject
objMessage.Body = astrEmailMessage
objMessage.BodyFormat = MailFormat.Html
objMessage.BodyEncoding = Encoding.UTF8
SmtpMail.SmtpServer = astrSMTPServer

For some reason it shows up fine when emailed to outlook but in doesnt
in HOTMAIL.... hotmail shows up with the stylesheet striped from the
document and the follow is part of the header... im including this
piece because it may give someone a clue to what is going on...

any help? thanks
Ryan
,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,

This is a multi-part message in MIME format.

------=_NextPart_000_0013_01C66EC0.A89EBF70
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
 
T

Tony B

Ryan said:
I have code that emails an html document where as the email is in html
format... (and not an attachment)
objMessage.From = astrEmailFrom
objMessage.Subject = astrEmailSubject
objMessage.Body = astrEmailMessage
objMessage.BodyFormat = MailFormat.Html
objMessage.BodyEncoding = Encoding.UTF8
SmtpMail.SmtpServer = astrSMTPServer

For some reason it shows up fine when emailed to outlook but in doesnt
in HOTMAIL.... hotmail shows up with the stylesheet striped from the
document and the follow is part of the header... im including this
piece because it may give someone a clue to what is going on...

any help? thanks
Ryan

Try moving your style definitions into the <body> section of the email
rather than the <head>.

Hotmail strips the head section out as it would conflict with the head
section of the hotmail page. Just add your style tags and definitions below
the opening body tag.

Tony
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,756
Messages
2,569,535
Members
45,008
Latest member
obedient dusk

Latest Threads

Top