File Exchange

image thumbnail

sendOutlookMail

version 1.0.0 (1.91 KB) by Brett Shoelson
Send emails via a simple MATLAB syntax. Add attachments and cc's, and easily format mutli-line/multi-paragraph email bodies.

3 Downloads

Updated 18 Mar 2019

View License

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.

Cite As

Brett Shoelson (2021). sendOutlookMail (https://www.mathworks.com/matlabcentral/fileexchange/69599-sendoutlookmail), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (1)

Andrew Cross

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
Many thanks

MATLAB Release Compatibility
Created with R2018b
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!