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. Thanks i had problem with this util module.
View Tutorial          By: james thompson at 2013-09-08 22:25:50

2. right to point.. thanks man
View Tutorial          By: manish at 2012-07-28 15:01:26

3. this site is really very useful.
it provide

View Tutorial          By: ankush bansal at 2009-11-12 08:34:13

4. Exception in thread "main" java.lang.NoC
View Tutorial          By: Lahrach Abdelhakim at 2015-02-18 14:38:03

5. Hi Ramlak,
Am getting
Sat Jan 17 13

View Tutorial          By: Shiv Kumar at 2009-01-17 02:01:01

6. thank you so much i learn from your tutorial i wis
View Tutorial          By: Anonymous at 2009-01-03 20:08:41

7. it's very easy simple progremme in java
View Tutorial          By: sambasiva rao at 2010-09-24 23:53:00

8. I get this error:
Can someone please help m

View Tutorial          By: Carlos at 2010-06-14 02:42:53

9. Hello Mr. Developer of above proj....plz let me kn
View Tutorial          By: Prakash Vishwakarma at 2011-07-08 10:02:22

10. Sir,
i am implementing the above code in w

View Tutorial          By: Girish padki at 2010-01-15 21:50:50