23. juli 2007 - 17:41Der er
5 kommentarer og 1 løsning
Jmail HTML mails og Outlook 2007
Jeg har lavet en simpel mail som kun bruger følgende elementer
- <font> - <a> - <br />
Når jeg sætterinformationerne ind bruger jeg metoden JMail.HTMLBody i Jmail, men når mailen kommer igennem, så vises kun den tekst der står i JMail.Body.
Hvad gør jeg galt? når jeg læser mailen i outlook 2003, så sermailen fin ud.
Sætter JMail.HTMLBody noget ind i starten af mailen, som får Outlook 2007 til at tro at mailen indeholder grimme css og html komandoer?
Støv, fibre og metalliske partikler kan påvirke både uptime, levetid og driftssikkerhed. Derfor arbejder flere datacentre systematisk med contamination control.
jmail.Subject = "Here's some graphics!" jmail.Body = "A nice picture if you can read HTML-mail."
' The return value of AddAttachment is used as a ' reference to the image in the HTMLBody. contentId = jmail.AddAttachment("c:\myCoolPicture.gif")
' As only HTML formatted emails can contain inline images ' we use HTMLBody and appendHTML jmail.HTMLBody = "<html><body><font color=""red"">Hi, here is a nice picture:</font><br>" jmail.appendHTML "<img src=""cid:" & contentId & """>" jmail.appendHTML "<br><br>good one huh?</body></html>"
' But as not all mailreaders are capable of showing HTML emails ' we will also add a standard text body jmail.Body = "Too bad you can't read HTML-mail." jmail.appendText " There would have been a nice picture for you"
Tilladte BB-code-tags: [b]fed[/b] [i]kursiv[/i] [u]understreget[/u] Web- og emailadresser omdannes automatisk til links. Der sættes "nofollow" på alle links.