Email subject from config issue

Hi All,

I want to send an email to few people and I’m storing my Email body in Config file. But when I try to add new line to the text it’s not working but when I use any variable with data it’s working. I’m unable to fix the issue.

I’m using Graph API - send Email activity
Enabled is HTML also

In config written - Hi Team, {0} please find the attached report.{0} Thanks and regards.{0}Automation bot.

But when i use replace {0} with Environment.newline - it’s writing like this.

Hi Team, please find the attached report.Thanks and regards.Automation bot.

I need output like below.

Hi Team,
please find the attached report.

Thanks and regards.
Automation bot.

@Learner007

can you recheck it once for me its giving the expected output

cheers

Hi,

As HTML mode is enabled, can you try to use "<br />" instead of Environment.Newline ?

Regards,

1 Like

Hi @Yoichi , will try that and let you know.

Hi @Shiva_Nikhil I’m getting input from config file that’s why I’m getting some issue it seems.

You can try this way it will work

"Hi Team,<br/><br/>please find the attached report.<br/><br/>Thanks and regards.<br/>Automation bot."

For the reference you can see the output : -

image

@Learner007

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