Solved

JavaMail SMTP Authentication

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

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Suggested Solutions

An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
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…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now