Solved

JavaMail SMTP Authentication

Posted on 2003-12-02
5
564 Views
Last Modified: 2013-11-24
I am using a 3rd party SMTP host and need to send emails from a java application.
I use my user name and password with the transport object but to no avail. I get the following message when I send.

"553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)"

Sooo... I sent some emails to the host and did some reading and I THINK the problem comes down to this statement on their website.

"you cannot simply reference 'mail.yourdomain.com' as an Outgoing mailserver unless you successfully log in via one of your pop3 accounts at 'mail.yourdomain.com' before you try to send"

So my question is how do i successfully log in via one of my pop3 accounts in Java? I saw the Authenticator class but that looks like it pops up a dialog or something. I need to be sending mails from a server for things like password reminders... my users arent going to know what to put in a dialog if it pops up. Can I authenticate without a popup?

Thanks
0
Comment
Question by:jzeil
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 86

Expert Comment

by:CEHJ
ID: 9860791
AFAIK does not necessitate popups. You simply return the correct credentials in your code
0
 
LVL 86

Accepted Solution

by:
CEHJ earned 125 total points
ID: 9860795
The principle should be the same as this:

http://javaalmanac.com/egs/java.net/Auth.html?l=find
0
 
LVL 92

Expert Comment

by:objects
ID: 9860980
have you tried authenticating as a test?
0

Featured Post

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I had a project requirement for a displaying a user workbench .This workbench would consist multiple data grids .In each grid the user will be able to see a large number of data. These data grids should allow the user to 1. Sort 2. Export the …
Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
This theoretical tutorial explains exceptions, reasons for exceptions, different categories of exception and exception hierarchy.

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question