Send SMTP Mail Message - Not Converting Body Type to HTML

Hi,

I am trying to use the Send SMTP Activity and have IsBodyHTML checked but unfortunatley it does not put my signature in same way as I can with Use Desktop Outlook App activity. Does anyone know how to solve this? Essentially, when I schedule to send mail via this activity I want to use same signature/color formatting and all that I use in my outlook desktop app.

Send SMTP Mail Message has nothing to do with Outlook. Outlook doesn’t even have to be installed. In order to add a signature to the email, you’d have to hard-code it as HTML in the body of Send SMTP Mail Message. Same goes for all the other fonts, colors, etc you have to mimic that with HTML in the body.

1 Like

Try sending the Complete Body in HTML Code, it will work

Try using Create HTML Content Activity to generate your email body and use its output as input to Send SMTP Message.

Hey @nkansagra1013 write your mail in HTML format
like in the below example

cheers

Hi @nkansagra1013

Welcome To UiPath,

you can manually add your Outlook signature in HTML format into the email body in UiPath when using the Send SMTP Activity. Ensure IsBodyHTML is checked to preserve formatting. Alternatively, you could use the Outlook API or Microsoft Graph API to send emails, which would include the signature and formatting from Outlook. Another option is to use the Use Desktop Outlook App activity, as it preserves the signature and formatting more effectively.

If you found helpful, feel free to tick as a solution.
Happy Automation

@nkansagra1013,

Make sure you enable body as html

I have IsBody checked off but when I past this code in the body I am getting an error stating arguement ‘Body’: BC31173: Missing required white space.

Here’s the HTML code, what I did is I copied my signature from outlook app, then pasted it into word and did save as HTML opened it into notepad and below is what I got for HTML.

@nkansagra1013,

Looks something wrong with the html code. Can you share it with dummy text. Let’s check it.

Test Nirmit | IT&S - Revenue Cycle Systems
RWJBarnabas Health | 2 Crescent Place | Oceanport | NJ 07757
111.111.1111 | Test.Nirmit@rwjbh.org

 

This is the image, I am looking to replicate same font and all of it.

DummySignature.txt (24.9 KB)

Here’s the txt file for it.

Are you able to help with this?