JavaMail SMTP Authentication
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   j_mirick
Posted On:   Tuesday, December 2, 2003 10:43 AM

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    More>>

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

   <<Less

Re: JavaMail SMTP Authentication

Posted By:   Christopher_Koenigsberg  
Posted On:   Tuesday, December 2, 2003 02:05 PM

Presumably you will need a mailbox at yourdomain.com, for your server system, so your server application can can authenticate to its pop3 mailbox, use its address as your return address for your outgoing system notifications, use its address to catch bounced errors, etc.

About | Sitemap | Contact