SMTP Email

Hi All,

I need to send an email using SMTP activiity and the body of the email is an html code.
So How can we use the html code in SMTP.Also the html code contains images.

Please find the attached html codePostcard2.txt (1.7 KB)

Thanks
VIshal

1 Like

Good evening @VishalN

You can use regular HTML tags to format the email body.

You can use sites like this (https://html-online.com/editor/) to create the desired email body and then replace certain contents with variables as needed.

Make sure to set the IsBodyHTML property to True in your SMTP activity properties.

But how to use it smtp activity of sending mail.I have attached the html body in this query please check

You would read the contents of your text file into a string variable using the “Read Text File” activity, then pass that variable name to the Body property of the “Send SMTP Message” activity.

You’ll also need to set the IsBodyHTML property to True in your SMTP activity properties.

Can you please share the code using my attached html