MATLAB: Sending e-mail

MATLABniveko

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?

Best Answer

I was able to do it by changing the Body property (instead of HTMLBody):
mail.Body = sprintf('This is line one.\nThis is line two.');