Send SMTP Mail Message new line

Hello, need help, how i can get Enter to new Line on body email
See Attch Below
image

It has to be like This
"Dear All,

Berikut Terlampir …

Terima kasih.
Regards,

1 Like

HI @Felix_Gunawan

You can try with

“Dear All,”+vbNewLine+“Berikut Terlampir …”

image

Regards
Gokul

1 Like

Hi @Felix_Gunawan

Alternative method

Use can try with

“Dear All,”+Environment.NewLine+“Berikut Terlampir …”

Regards
Gokul

1 Like

hi gokul, have try this, but its makes sending email automaticlly for three times. with empty subject…do you have another clue? thanks

Hi @Felix_Gunawan

Have try with Environment.NewLine

Regards
Gokul

still nothing happen.

Hi @Felix_Gunawan

Can you share your workflow. Maybe your Send SMTP activity was executed for 3 times.

its like this.

Hi @Felix_Gunawan

Its is looping how many times in the for each. Can you elaborate little bit

Regards
Gokul

hi Gokul, its only one line in excel… it shouldn’t looping more than one. Am i Right?
Thanks.

Yes @Felix_Gunawan You are correct

so… is there any clue for this. To Make Enter new line in body email. please advise.

HI @Felix_Gunawan

Can try to give the Body content in the Assign activity, and pass the variable in the Body

Regards
Gokul

can you give an example…thanks…

HI @Felix_Gunawan

Here is the workflow

Sequence5.xaml (7.2 KB)

Regards
Gokul

Try this:

“Line 1” & vbCrLf & “This should be on second line”

No, its still running only 1 online like before.

Please try when IsBodyHtml properties is not selected.

getting a new line within the body of an email we do:

for text body emails: “ABC” & Environment.NewLine & CDE
for html body emails: "ABC <br> CDE"

avoiding unnecessary loops ensure that the datatable doesn’t contain unneded rows (e.g. empty ones) and e.g. cleanse / filter it before looping

Great!! Thanks, its Working, once more, how about to giving space with empty value. For now is like this
image

Which i needed like below:
Dear All.

Berikut…

Regards,
-RPA-

please advise. Many Thanks.