Solved

JavaMail SMTP Authentication

Posted on 2003-12-02
5
563 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
  • 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

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

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
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 …
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 video teaches viewers about errors in exception handling.

785 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