Why do I get the error : Error using sendmail (line 172) 530 5.7.0 Must issue a STARTTL command first?
1 Ansicht (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 6 Dez. 2016
Beantwortet: MathWorks Support Team
am 6 Dez. 2016
I am using the sendmail command with gmail to send email , after updating my authentication details recently the sendmail command stopped working.
It happens mainly when I have attachments in my email.
Akzeptierte Antwort
MathWorks Support Team
am 6 Dez. 2016
This happens when sendmail tries to create a secure connection and send the email. By default the connection is plain text and the server expects the a secure connect. To make it a secure connection please add the following line to configure the sendmail command
props = java.lang.System.getProperties;
props.setProperty( 'mail.smtp.starttls.enable', 'true' );
This property sets the connection to be secure.
0 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Web Services finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!