?
Solved

JavaMail SMTP Authentication

Posted on 2003-12-02
5
Medium Priority
?
566 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 500 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

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 …
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.
Suggested Courses
Course of the Month15 days, 3 hours left to enroll

770 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