Comment on Tutorial - Sending Email from Java application (JavaMail sample program) By Narayanan



Comment Added by : Phyo Phyo

Comment Added at : 2009-09-14 05:32:28

Comment on Tutorial : Sending Email from Java application (JavaMail sample program) By Narayanan
Hello,
I've tried the above code, but I've ended up in the following error.

com.sun.mail.smtp.SMTPSendFailedException: 530 5.7.0 Must issue a STARTTLS command first. 7sm4905442agd.3

at com.sun.mail.smtp.SMTPTransport.issueSendCommand(SMTPTransport.java:1333)
at com.sun.mail.smtp.SMTPTransport.mailFrom(SMTPTransport.java:906)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:535)
at javax.mail.Transport.send0(Transport.java:151)
at javax.mail.Transport.send(Transport.java:80)
at testing.MailTest.main(MailTest.java:49)

Could anyone help me?
Thanks and best regards.


View Tutorial



Subscribe to Tutorials

Related Tutorials

Program using concept of byte long short and int in java

Update contents of a file within a jar file

Tomcat and httpd configured in port 8080 and 80

Java File

Java String

Count number of vowels, consonants and digits in a String in Java

Reverse a number in Java

Student marks calculation program in Java

Handling Fractions in Java

Calculate gross salary in Java

Calculate average sale of the week in Java

Vector in Java - Sample Program

MultiLevel Inheritance sample in Java

Multiple Inheritance sample in Java

Java program using Method Overriding

Archived Comments

1. its working... thanks.. thank you very much...!!!!
View Tutorial          By: Viswanathan at 2008-08-18 06:54:09

2. could you plz tell me how to run this all programs
View Tutorial          By: abhishek at 2010-10-27 00:08:57

3. As C does not support Function Overloading, there
View Tutorial          By: N at 2013-03-06 00:27:14

4. Just used InstallCert.java successfully so that my
View Tutorial          By: Anthony Pelosi at 2009-12-30 15:52:17

5. Updated example to better show Thread T2 showing t
View Tutorial          By: Sanjiv at 2013-05-25 20:26:31

6. This is really helpful.
View Tutorial          By: srikanth at 2009-03-11 08:04:04

7. hey plzz help me the code is not working for me...
View Tutorial          By: kuldeep at 2014-02-24 18:16:59

8. send c++ programs on every topic of c++
View Tutorial          By: mandeep at 2009-07-11 00:50:23

9. how to create a do while,the output wil show the m
View Tutorial          By: waa at 2009-09-02 19:23:45

10. Good one......
Thanks.

View Tutorial          By: Suresh at 2013-03-14 07:38:45