File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Can not send Email from localhost

 
Shounak Kundu
Ranch Hand
Posts: 60
IBM DB2 Eclipse IDE Fedora
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi, I am trying to send email from localhost and I am using Javamail.

But I am getting SMTPSendFailedException : 550 5.1.0 Authentication Required

Here's my code :

Thanks in advance.
 
Paul Clapham
Sheriff
Pie
Posts: 20164
24
MySQL Database
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From what I can understand of that code, you are trying to use the SMTP server at smtp.comcast.net to send e-mail. And that server says you have to authenticate yourself to it. So, do that. Your code doesn't do any authentication that I can see.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic