I am facing the following exception while trying to automate the feature called "sending automation reports after executing test suite to the stakeholders through email"
Here I am mentioning the stack trace of the following exception:
"Exception in thread "main" java.lang.RuntimeException: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. ez1sm2452159pab.6 - gsmtp
at com.testing.one.SendEmail.main(SendEmail.java:101) Caused by: com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. ez1sm2452159pab.6 - gsmtp
at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:2110) at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:1609) at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:1117) at javax.mail.Transport.send0(Transport.java:254) at javax.mail.Transport.send(Transport.java:124) at com.testing.one.SendEmail.main(SendEmail.java:96)"
M
Replied on 05/11/2015
your program works fine for me I just added my email and recipient and it worked.
use the jar [color=#FF0000:3jutspyo]javax.mail-1.3.3.01.jar[/color:3jutspyo] and then try again.