16 views (last 30 days)
I am sending an e-mail from MatLab using the following code:
h = actxserver('outlook.application'); mail = h.CreateItem('olMail'); mail.Subject = mTitle; mail.BodyFormat = 'olFormatHTML'; mail.HTMLBody = Text;
Text is string with multiple lines in it. How can I tell Outlook that I need carriage return or two after each line?
More Answers (2)
Walter Roberson on 21 Feb 2011
HTML is independent of line boundaries, so there might not be a method provided for that. Code <br> or <P> where you need line breaks.