Sending e-mail
Afficher commentaires plus anciens
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?
Réponse acceptée
Plus de réponses (2)
Walter Roberson
le 21 Fév 2011
0 votes
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.
Adam Jems
le 25 Sep 2018
0 votes
I also tried this code but I was unable to send email to matlab through my account .i don't know is this due to my firewall or something else .whenever I try to send it shows an error message . for more details regarding this visit - AT&T Email Support
Catégories
En savoir plus sur Web Services dans Centre d'aide et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!