How to send an email using MATLAB? How to check internet connection in MATLAB?

Video explains how to send email through MATLAB. In this video it explains to configure the MALTAB with the gmail/ google SMTP server. This video also shows how to test the internet connection from within MATLAB.

We will be glad to hear from you regarding any query, suggestions or appreciations at:

Source code:

% SendEmail

setpref(‘Internet’,’E_mail’,’’); % Need to give the email ID

props = java.lang.System.getProperties;

setpref(‘Internet’,’SMTP_Username’,’’); % Need to give the email ID
setpref(‘Internet’,’SMTP_Password’,’**********’); % Need to give the password

sendmail(‘’, ‘MATLAB Test’, ‘Test Email’)


Leave a Reply

%d bloggers like this: