PC SOFT

FORUMS PROFESSIONNELS
WINDEVWEBDEV et WINDEV Mobile

Accueil → WEBDEV 2024 → Webdev Mails
Webdev Mails
Débuté par Rafa, 19 déc. 2016 11:49 - 2 réponses
Posté le 19 décembre 2016 - 11:49
good morning

I have code to send mail that works well, I use the following system:

oSessionSMTP is EmailSMTPSession

oSessionSMTP..ServerAddress = ""
oSessionSMTP..Name = ""
oSessionSMTP..Password = ""
oSessionSMTP..Port = ""
oSessionSMTP..Option = ""

oMail is Email

oMail..SenderAddress = ""
oMail..Sender = ""
oMail.Subject = ""
oMail..Bcc[1] = ""
oMail.Recipient = ""
oMail..Message = ""


But if as a mail message I indicate a string containing html tags, these are not processed and displayed as written. How can I correctly display the body of the html message?
Posté le 19 décembre 2016 - 13:29
Hi Rafa

Just put your html message in oMail..HTML

Best regards

--
Fabrice Harari
International WinDev, WebDev and WinDev mobile Consulting

Ready for you: WXShowroom.com, WXReplication (open source) and now WXEDM
(open source)

More information on http://www.fabriceharari.com

Le 12/19/2016 à 5:49 AM, Rafa a écrit :
good morning

I have code to send mail that works well, I use the following system:

oSessionSMTP is EmailSMTPSession

oSessionSMTP..ServerAddress = ""
oSessionSMTP..Name = ""
oSessionSMTP..Password = ""
oSessionSMTP..Port = ""
oSessionSMTP..Option = ""

oMail is Email

oMail..SenderAddress = ""
oMail..Sender = ""
oMail.Subject = ""
oMail..Bcc[1] = ""
oMail.Recipient = ""
oMail..Message = ""


But if as a mail message I indicate a string containing html tags, these
are not processed and displayed as written. How can I correctly display
the body of the html message?
Posté le 20 décembre 2016 - 12:24
Thanks Fabrice !