edit-sending mail -Error Authentication failed.

조회 수: 3 (최근 30일)
Pat
Pat 2012년 5월 11일
댓글: ziv Meir 2015년 4월 16일
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
Kaustubha Govind
Kaustubha Govind 2012년 5월 11일
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 2012년 5월 11일
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

댓글을 달려면 로그인하십시오.

답변 (1개)

Joseph
Joseph 2015년 3월 9일
Can someone explain how to fix this issue? I keep getting the "Authentication Failed" Error
  댓글 수: 1
ziv Meir
ziv Meir 2015년 4월 16일
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.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Web Services에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by