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



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. Thanks
View Tutorial          By: Bad Programmer at 2011-11-23 10:43:49

2. Good To understand.
View Tutorial          By: Radhika at 2010-05-11 01:24:55

3. Hello,
I am not getting any output.

View Tutorial          By: Niket DOshi at 2015-05-01 03:03:49

4. these tutorials are very simple to understand. I
View Tutorial          By: sagar at 2009-05-09 23:31:01

5. Awesome article...
View Tutorial          By: Jiten TAluja at 2010-06-03 06:33:10

6. i am run code this rectify this error please some
View Tutorial          By: indiran at 2010-01-28 01:45:56

7. i am getting the following error when i ran this p
View Tutorial          By: nancy kapoor at 2008-10-07 14:26:21

8. I think it is the best article for freshers.thanks
View Tutorial          By: srikanth at 2010-11-01 23:27:53

9. Excellent Example to explain the functions
View Tutorial          By: manish at 2010-08-05 03:10:43

10. Hi,
I am getting this exception..My modem i

View Tutorial          By: divya at 2008-04-27 04:12:19