the code below is ASP but we don’t seem to have ASP tags so it’s in PHP tags, but it is ASP…honest
Set myMail=CreateObject("CDO.Message")
myMail.Subject="Sending email with CDO"
myMail.From="sender@gmail.com"
lsendto = "recep@gmail.com"
myMail.To= lsendto
myMail.CreateMHTMLBody "http://www.whatever.com/static.html"
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/sendusing")=2
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserver")="smtp.server.settings.co.uk"
myMail.Configuration.Fields.Item("http://schemas.microsoft.com/cdo/configuration/smtpserverport")=25
myMail.Configuration.Fields.Update
myMail.Send
set myMail=nothing
I’m trying to send the HTML page to the recipent and this works but for some reason all the CSS styling of the HTML page is stripped out and the recepient gets a rather odd looking page sent to them
any ideas?