edit-sending mail -Error Authentication failed.
10 ビュー (過去 30 日間)
古いコメントを表示
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
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?
回答 (1 件)
Joseph
2015 年 3 月 9 日
Can someone explain how to fix this issue? I keep getting the "Authentication Failed" Error
1 件のコメント
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 Center および File Exchange で Web Services についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!