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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASPmail - HTML email not received by hotmail

Status
Not open for further replies.

gavray

Programmer
Jul 17, 2000
65
GB
Hi,

I'm trying to send out an HTML newsletter and as you can imagine most people have given their 'Dumping' accounts like hotmail and yahoo.

This HTML email works fine with proper email clients like eudora and outlook, but there is no sign at all of the email being received by hotmail or yahoo accounts.

I know my hotmail account can received HTML emails from a number of other newsletters, why no mine. Is is aspMAil as this is the only one on my ISP has?

Any ideas please!!

this is code -

Set Mailer = Server.CreateObject("SMTPsvg.Mailer")
Mailer.RemoteHost = "smtp.intomusic.co.uk"
Mailer.FromName = "IntoMusic.co.uk"
Mailer.FromAddress = "postmaster@intomusic.co.uk"

Mailer.AddBCC request.form("name"),request.form("email")
Mailer.Subject = "IntoMusic - July Newsletter - More New Music For You"
Mailer.ContentType = "text/html"

myString = myString & &quot;<html><head>&quot; & Chr(13) & Chr(10) & Chr(13) & Chr(10)
myString = myString & &quot;<style>&quot; & Chr(13) & Chr(10) & Chr(13) & Chr(10)
myString = myString & &quot;.style&quot; & Chr(13) & Chr(10) & Chr(13) & Chr(10)
myString = myString & &quot;{&quot; & Chr(13) & Chr(10) & Chr(13) & Chr(10)
myString = myString & &quot; FONT-SIZE: 12px;&quot; & Chr(13) & Chr(10) & Chr(13) & Chr(10)
myString = myString & &quot; font-face: Verdana;&quot; & Chr(13) & Chr(10) & Chr(13) & Chr(10)
myString = myString & &quot;}&quot; & Chr(13) & Chr(10) & Chr(13) & Chr(10)
myString = myString & &quot;</style>&quot; & Chr(13) & Chr(10) & Chr(13) & Chr(10)

myString = myString & &quot;</head><body bgcolor=#848294>&quot; & Chr(13) & Chr(10) & Chr(13) & Chr(10)

myString = myString & &quot;<table border=1 width=550 height=400 bordercolor=#000000 bordercolordark=#000000 cellpadding=0 cellspacing=0 bgcolor=#eeeeee><tr><td height=0>&quot; & Chr(13) & Chr(10) & Chr(13) & Chr(10)

#more body of message I'll leave out
myString = myString & &quot;</td></tr></table></td></tr></table></html>&quot; & Chr(13) & Chr(10) & Chr(13) & Chr(10)

Mailer.BodyText = myString

if not Mailer.SendMail then
Response.Write &quot; Mailing Failed... Error is: <br>&quot;
Response.Write Mailer.Response
else
Response.Write &quot; Details have been successfully added...<p>&quot;
end if





the boho from soho
 
hotmail has issues with HTML content mixed with vbscript (eg:Chr Codes) try testing the hotmail account with a simple mailer to see if that is it. If so then convert the content to HTML taging only.

____________________________________________________
[sub]The most important part of your thread is the subject line.
Make it clear and about the topic so we can find it later for reference. Please!! faq333-3811[/sub]
onpnt2.gif
 
Hi, I actually found out what it was.

I changed - Mailer.AddBCC
to - Mailer.AddRecipient

and it seemed to work.



the boho from soho
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top