...
Email address: This preference sets your email address that will appear on the message.
Code Block setpref('Internet','E_mail','youraddress@ucsd.edu');
SMTP server: This preference sets your outgoing SMTP server address, which can be almost any email server that supports the Post Office Protocol (POP) or the Internet Message Access Protocol (IMAP).
Code Block setpref('Internet','SMTP_Server','smtp.ucsd.edu');
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.
...