I would like to send an email from within MATLAB via the GMail/Yahoo server. If I try to do this using a script such as the following:
Using Gmail Server:
setpref('Internet','SMTP_Server','smtp.gmail.com');setpref('Internet','E_mail','an.example.email.address@gmail.com');sendmail('an.example.email.address@gmail.com','Test email', 'Test');
Using Yahoo Server:
setpref('Internet','SMTP_Server','smtp.mail.gmail.com');setpref('Internet','E_mail','an.example.email.address@yahoo.com');sendmail('an.example.email.address@yahoo.com','Test email', 'Test');
I receive the following error: ERROR: ??? Error using ==> sendmail 530 5.7.0 Must issue a STARTTLS command first b19sm1973874ana
Best Answer