Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Good morning.
I have a working email body, but I have to have everything in a single line, like this:
<html><body><p>Good afternoon.</p><p ALIGN=LEFT>Management Report - PDF File Attached. This email is an automated procedure.<br></p><br><br><br><p ALIGN=LEFT>Kind Regards.<br>Report Manager.<br></p></body></html>
How can I break the lines to make it more readable? Like this:
<html>
<body>
<p>Good afternoon.</p>
<p ALIGN=LEFT>Management Report - PDF File Attached. This email is an automated procedure.<br></p>
<br>
<br>
<br>
<p ALIGN=LEFT>Kind Regards.<br>Report Manager.<br></p>
</body>
</html>
Thank you very much.
Maybe: replace(String, '><', '<' & chr(10) & '>')
Hi @marcus_sommer .
Thank you for those pointers. I eventually got it to work. I am not sure if it is technically correct, but it does what I need it to do.
objEmail.htmlbody = "<html><body>" _
& "<p>Good afternoon.</p>" _
& "<p ALIGN=LEFT>Management Report - PDF File Attached. This email is an automated procedure.</p>" _
& "<br>" _
& "<br>" _
& "<br>" _
& "<p ALIGN=LEFT>Kind Regards.<br>Report Manager.</p>" _
& "</body></html>"