What is the syntax for a new line in when sending automatic email from MATLAB

5 views (last 30 days)
I am trying to configure my third line of code in my matlab function "email.Body=...." to start a new line of code for each line in the body of an email. I do not know what the syntax is though? I have tied char(10), br\ and \n, but have struck out. Can anybody assist?
email.Recipients.Add('johndough@aol.com'); email.Subject = 'AOL Update'; email.Body='line 1 br\ line 2 br\ line 3 br\';

Answers (1)

Image Analyst
Image Analyst on 28 Dec 2014
See my attached demo on sending an email.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!