SendFailedException: not logged into the pop/imap server in the last 30 minutes.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Anonymous
Posted On:   Thursday, July 5, 2001 01:23 AM

Hello, I got SendFailedException when I try to send different domain addresses. I get this error in first attempt. After a while, I get again. I guess I'm not logged into my pop3 server in first attempt. I'm connecting pop3 as a workaround. I can not want my admin to enable relaying. I'm pasting my code below: Store store = session.getStore("pop3"); store.connect(smtpHost,eMailUserName,eMailPassword); message.saveChanges(); Transport.send(message); store.close(); What am I missing ? And, if I have to connect to pop3, what do the following codes make sense (I'm not currently using) ? Transport tr = session   More>>

Hello,


I got SendFailedException when I try to send different domain addresses.
I get this error in first attempt. After a while, I get again. I guess I'm not logged into
my pop3 server in first attempt. I'm connecting pop3 as a workaround.
I can not want my admin to enable relaying.


I'm pasting my code below:

			
Store store = session.getStore("pop3");
store.connect(smtpHost,eMailUserName,eMailPassword);
message.saveChanges();

Transport.send(message);
store.close();


What am I missing ? And, if I have to connect to pop3, what do the following codes
make sense (I'm not currently using) ?
			
Transport tr = session.getTransport("smtp");
tr.connect(smtpHost,eMailUserName,eMailPassword);
message.saveChanges(); // Bunu unutma diyor....
tr.send(message);
tr.close();

I'm pasting full exception below:
			
javax.mail.SendFailedException: Sending failed;
nested exception is:
javax.mail.SendFailedException: Invalid Addresses;
nested exception is:
javax.mail.SendFailedException: 550-Host (thunder1.cwihosting.com) [209.61.171.75] is
not permitted
550-to relay through thunder1.cwihosting.com.
550-Perhaps you have not logged into the pop/imap server in the last 30 minutes.
550-You may also have been rejected because your ip address
550-does not have a reverse DNS entry.
550 relaying to prohibited by administrator (failed to find host name from IP address)
   <<Less

Re: SendFailedException: not logged into the pop/imap server in the last 30 minutes.

Posted By:   John_Zukowski  
Posted On:   Thursday, July 5, 2001 05:43 AM

It looks like you need to POP authenticate yourself before sending your message. With YOUR POP HOST, NOT YOUR SMTP HOST.

Store store = session.getStore("pop3");
store.connect(POPHOST, username, password);
About | Sitemap | Contact