Clear Filters
Clear Filters

How to send email from matlab?

3 views (last 30 days)
Asha D.
Asha D. on 13 Aug 2019
Commented: Adam Danz on 13 Aug 2019
Getting error with this code.
  2 Comments
David Wilson
David Wilson on 13 Aug 2019
Probably not smart to hardcode your email password in the attached code!
Adam Danz
Adam Danz on 13 Aug 2019
Asha D., as David mentioned, if the password is not fake, remove the attachment ASAP. Since your code is short, it's better just to embed the code within your question rather than attaching it.
What error are you getting?
A common problem with sending emails from matlab is the antivirus program or a firewall blocking the commands.
Here's a demo that works with gmail emails.

Sign in to comment.

Answers (0)

Tags

Community Treasure Hunt

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

Start Hunting!