Sending e-mail
显示 更早的评论
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?
采纳的回答
更多回答(2 个)
Walter Roberson
2011-2-21
0 个投票
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
2018-9-25
0 个投票
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
类别
在 帮助中心 和 File Exchange 中查找有关 Web Services 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!