|
| WD20 - send email through outlook not in html |
| Iniciado por guest, 24,mar. 2016 16:24 - 2 respuestas |
| |
| | | |
|
| |
| Publicado el 24,marzo 2016 - 16:24 |
Hello, I did a little test trying to send an email using the local Outlook.
When I look at the email in the send-items everything looks normal. However the receiver does NOT see the body in html but in plain text. In this testcase I am the receiver, using the same Outlook to see the incoming mail. And I have the same problem. The body is in plain text showing all html-markup as text
What's wrong with this (simplified) code?
myEmail is Email nOutlookSessionID is int = EmailStartOutlookSession("") Add(myEmail.Recipient,"blabla@gmail.com") myEmail.Subject = "Email title" myEmail.Message = "Email content" myEmail.HTML = RTFToHTML(EDT_NoName1) EmailSendMessage(nOutlookSessionID,myEmail) |
| |
| |
| | | |
|
| | |
| |
| Publicado el 24,marzo 2016 - 18:32 |
// EDT_RTF is an RTF control // sHTML is an HTML string // HTM_HTML1 is an HTML control sHTML = RTFToHTML(EDT_RTF) sTmp is string = "" + sHTML + "" HTM_HTML1 = sTmp
Saw this in help. Maybe it needs tags?
regards Allard |
| |
| |
| | | |
|
| | |
| |
| Publicado el 24,marzo 2016 - 20:03 |
Allard,
I already tried that but it doesn't make any difference. Also when saving the body-text to a test.html file it's perfectly shown by IE or Edge. With or without the html tags, the browser is smart enough to handle that. And I suppose Outlook is as well. |
| |
| |
| | | |
|
| | | | |
| | |
|