edit-sending mail -Error Authentication failed.

3 visualizaciones (últimos 30 días)
Pat
Pat el 11 de Mayo de 2012
Comentada: ziv Meir el 16 de Abr. de 2015
When i use the line
sendmail('xxx@gmail.com', 'Gmail Test', 'This is a test message.')
i get error
Error using ==> sendmail at 168 Authentication failed.
please help
  2 comentarios
Kaustubha Govind
Kaustubha Govind el 11 de Mayo de 2012
Did you follow the procedure from the example here: http://www.mathworks.com/help/techdoc/ref/sendmail.html
Perhaps your SMTP_Username or SMTP_Password are incorrect?
Pat
Pat el 11 de Mayo de 2012
thanks Kaustubha Govind ,i got it ,but if i want to send mail to another person,what can i do,i dont know his password

Iniciar sesión para comentar.

Respuestas (1)

Joseph
Joseph el 9 de Mzo. de 2015
Can someone explain how to fix this issue? I keep getting the "Authentication Failed" Error
  1 comentario
ziv Meir
ziv Meir el 16 de Abr. de 2015
Have the same problem. It worked before (while ago) and now i can't make it work. Can any one help with this one?
my code:
props = java.lang.System.getProperties; props.setProperty('mail.smtp.auth','true'); props.setProperty('mail.smtp.socketFactory.class', 'javax.net.ssl.SSLSocketFactory');
setpref('Internet', 'E_mail', myaddress); setpref('Internet', 'SMTP_Username', myuser); setpref('Internet', 'SMTP_Password', mypassword); setpref('Internet', 'SMTP_Server', 'smtp.gmail.com'); %setpref('Internet', 'SMTP_Server', 'email'); %setpref('Internet', 'SMTP_Server', 'xmail.weizmann.ac.il'); props.setProperty('mail.smtp.socketFactory.port', '465');
sendmail(mailaddress, SubjectString, 'error message');
i get:
??? Error using ==> sendmail at 168 Authentication failed.

Iniciar sesión para comentar.

Etiquetas

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by