On systems with MS Outlook, easily send emails to multiple recipients and multiple cc's (using cell arrays of addresses); attach files; and format the body into multiple lines/paragraphs.
This is a modification of sendolmail that facilitates easy creation of a multi-line (mutli-paragraph) body; simply specify 'body' as a cell array of strings.
Brett Shoelson (2021). sendOutlookMail (https://www.mathworks.com/matlabcentral/fileexchange/69599-sendoutlookmail), MATLAB Central File Exchange. Retrieved .
Fantastic - worked first time including with an attachment.
This routine overcame the direct setpref(), sendmail() Matlab commands method, which becomes unstuck with authenticated email (as used with secured "work" email accounts)
Note the attachment cell-array parameter requires the absolute path as part of the filename
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!