Hi,
I am using SysEmailSystemTable::sendMail() method to send email. The email template is being used with placeholders which are filled by calling SysEmailMessage::stringExpand method. I have a requirement to show some texts on multiple lines inside email body. The text already has '\n' character in it, but it is not showing multiple lines in email being sent.
I have searched for different methods for sending email, but couldn't find any method which uses email template with placeholders and able to show multiple lines. I have found that the text in the body needs to be converted to HTML, but not sure how I can do this with the current method.
Does anyone have any clue how can I achieve above requirement?
Thanks,
Baber.
*This post is locked for comments
I have the same question (0)