I am Getting an error with send Mail
1 visualizzazione (ultimi 30 giorni)
Mostra commenti meno recenti
setpref('Internet','E_mail','*myEmail*');
setpref ('Internet','SMTP_Server','smtp.gmail.com') ;
setpref('Internet','SMTP_Username','*myEmail*');
setpref('Internet','SMTP_Password','*mypassword*') ;
props = java.lang.System.getProperties;
props.setProperty('mail.smtp.auth','true');
props.setProperty('mail.smtp.socketFactory.class', 'javax.net.ssl.SSLSocketFactory');
props.setProperty('mail.smtp.socketFactory.port','465');
sendmail('*myEmail*','yo');
I did pretty much everything everyone has said to do. I got past the authentication error by turring third party security off but now i am getting this error
Error using sendmail (line 175)
IOException while sending message;
encoding
Error in addadwda (line 10)
sendmail('*myEmail*','yo');
I dont know what to do because I dont see this error anywhere on google related to matlab. (the 'while sending message' is not purple when the error pops up in the comand window)
0 Commenti
Risposte (1)
Jyotsna Talluri
il 27 Feb 2020
Go to this link https://myaccount.google.com/security#signin and in the section "Apps with account access" change "Allow less secure apps" to ON.Also disable the two step verification.Hope this helps.
0 Commenti
Vedere anche
Categorie
Scopri di più su Web Services in Help Center e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!