473,406 Members | 2,352 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Emailing HTML/Hotmail problem

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

May 3 '06 #1
1 1206
"Ryan" <ry***@ungerboeck.com> wrote in message
news:11*********************@i40g2000cwc.googlegro ups.com...
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
May 3 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: yiyongpan | last post by:
Hi all; I am using mail() to send email, but when I test on my yahoo and hotmail account, all emails are send to the yahoo&hotmail bulk folder. Why? and how to avoid it? Thanks a lot!!
9
by: Bill | last post by:
I am trying to have the capability to email attachments. Specifically I want to be able to email a specific attachment that I name that may be a PDF document, text doc, etc. I already have a...
1
by: Bob-O | last post by:
Need your help in sending an email message with an attachment in my VB.Net program. Sending a body message is no problem. I don't know how to use the attachment property in an emai Following is...
1
by: Stanley Cheung | last post by:
Hi all, I am developing the application for send emailing list, actually, i can perform to send a email 1 by 1 and do it on aspx page. I have a enquiry that how can the application change to...
10
by: MLH | last post by:
I print to a device that creates a PDF. Knowing the filename, how can I then embed the PDF into the body text of an OutLook Express outbound email & send to a specified address in a table? I want...
3
by: tafs7 | last post by:
My code below is supposed to email me when an error occurs on the application, but it's not emailing anything. Am I missing something? I know the smtp servers I've tried work. I even added a...
2
by: Foehammer | last post by:
I am using the standard .NET method of sending an email. My users will be filling out a web form with various pieces of information. I have created a control with properties that are the same as...
5
by: Shaan | last post by:
Hi Everybody, I am incorporating emailing feature in my VB.Net application. The code is as below. When I send email to some XYZ@buffalo.edu, it sends the email successfully, but when I send it...
8
by: marjbell | last post by:
I have a Access database of email addresses that I would like to mass email to customers. Can Access be used through Outlook? or can it just be done with Access? I know it is possible to use...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.