aspose file tools*
The moose likes Other JSE/JEE APIs and the fly likes Encountering SMTPSendFailedException with SendMailServlet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Other JSE/JEE APIs
Bookmark "Encountering SMTPSendFailedException with SendMailServlet" Watch "Encountering SMTPSendFailedException with SendMailServlet" New topic
Author

Encountering SMTPSendFailedException with SendMailServlet

Michael K. Wilson
Ranch Hand

Joined: Apr 23, 2008
Posts: 45
Hello there,

Am trying to write a simple servlet which will send a sample e-mail through G-Mail...

BTW, I did follow the instructions posted on http://java.sun.com/products/javamail/FAQ.html#gmail.

Am using JDK 1.5.0, JavaMail 1.4, JAF 1.1.1 and when I deploy to my app server and click on:

http://localhost:8080/myapp/sendmail

SendMail.java:


Encountered the following exception:



Would appreciate it if someone could help...

Happy programming,

Mike
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336


# 530-5.5.1 Authentication Required. Learn more at
# 530 5.5.1 http://mail.google.com/support/bin/answer.py?answer=14257 l27sm13168474waf.55

Did you follow that link?


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Encountering SMTPSendFailedException with SendMailServlet