Using html in email

So far I have only used plain text in email. But as there is need for clickable links I try to use html instead.
But something is missing. I send to myself in Gmail.


html tags is shown as text instead of parsed as html in email body

I call Sendmessage for an instance of TTMSFNCCloudMicrosoftOutlookMail.
I suppose it is enough to change mtPlainText to mtHTML ?

fOutLookEmail.SendMessage(fSubject, fBody, sRecipents, sCCRecipents, nil, mtHTML, oAttachmentFileList);

Yes, changing the AMailType parameter to mtHTML should be sufficient for sending HTML-formatted emails.

If the issue persists, please try isolating it in a sample project that reproduces the problem. This will help me investigate further.

Hi, I made a small demo of send html-mail. And it works perfect :grin:
So I have to investigate further what mistake I done.

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.