File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes gettimg Exception in Transport.send() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "gettimg Exception in Transport.send()" Watch "gettimg Exception in Transport.send()" New topic

gettimg Exception in Transport.send()

Sandy Verma

Joined: Nov 20, 2011
Posts: 1
Hello guys,
I am getting the following exception while running the code to send a mail from gmail account

javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.MessagingException: 530 5.7.0 Must issue a STARTTLS command first. el2sm29078994ibb.10

Please help !!!
Tim Moores

Joined: Sep 21, 2011
Posts: 2408
Read the FAQ:, and don't use multiple exclamation marks where a single dot suffices. And what's with the emoticons? Do you think repeating them somehow reinforces the words you wrote?
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 40052
Welcome to the Ranch

I might remove some of those emoticons.
subject: gettimg Exception in Transport.send()