Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

To send an email from MATLAB®, use the sendmail function. You can also attach files to an email, which lets you mail files directly from MATLAB. To use sendmail, set up your email address and your SMTP server information with the setpref function.


The setpref function defines two mail-related preferences:

...

Once you have properly configured MATLAB, you can use the sendmail function. The sendmail function requires at least two arguments: the recipient's email address and the email subject.

...