HAI... I AM USING MATLAB R2013a
I TRIED SENDMAIL CODING BUT I GET THE ERROR....
530 5.7.0 Must issue a STARTTLS command first. 5sm29774614pfn.46 - gsmtp
I SOLVE THIS ERROR BY USING COMMAND IN COMMAND WINDOW
JUST TYPE THIS COMMANDS
props = java.lang.System.getProperties;
props.setProperty( 'mail.smtp.starttls.enable', 'true' )
then run your sendmail coding ,it was worked....
Coding
mail ='123@gmail.com'; % Your mail id
password ='hai@123'; % Yore password
host = 'smtp.mail.com';
port = '587';
setpref('Internet','E_mail',mail);
setpref('Internet','SMTP_Server',host);
sendmail({'kalai@gmail.com',... 'kalai1@gmail.com'},'Matlab',... 'hai',{'C:\New folder\license.txt',... 'C:\New folder\j.pdf'}) % Receiver mail id and also send many more receiver ... send also files like doc,pdf,image,rar files
if u use any sender mail id just open and close sender mail in your using system ....because it solve authentication error by using this .