Why do I get the error : Error using sendmail (line 172) 530 5.7.0 Must issue a STARTTL command first?
조회 수: 1 (최근 30일)
이전 댓글 표시
MathWorks Support Team
2016년 12월 6일
답변: MathWorks Support Team
2016년 12월 6일
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.
채택된 답변
MathWorks Support Team
2016년 12월 6일
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
추가 답변 (0개)
참고 항목
카테고리
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!