JavaMail Trouble

J

junisalico

Hey all,
I'm trying to use javamail to send a simple e-mail through an applet.
Right now I can successfully send a simple e-mail from one of my e-mail
addresses to that same address. However, when I try to send an e-mail
to a different address I get the following exception thrown:
------------------------------------
javax.mail.SendFailedException: Invalid Addresses
at com.sun.mail.smtp.SMTPTransport.rcptTo(SMTPTransport.java:1161)
at com.sun.mail.smtp.SMTPTransport.sendMessage(SMTPTransport.java:554)
at javax.mail.Transport.send0(Transport.java:169)
at javax.mail.Transport.send(Transport.java:98)...
.......
-----------------------------------

Does anybody know why I can send an e-mail successfully to the same
address that I am getting it but I get the "Invalid Addresses"
exception thrown when I try to send it to a different address (even
though I tried many e-mails).

Thanks, Jay
 
C

Chris Smith

I'm trying to use javamail to send a simple e-mail through an applet.
Right now I can successfully send a simple e-mail from one of my e-mail
addresses to that same address. However, when I try to send an e-mail
to a different address I get the following exception thrown:

Hmm. So mail only goes through if the from and two address is the same?
Or perhaps it's if the to address is in a certain group (such as some
domain) to which all of your addresses belong? The latter would make
more sense.
 
J

junisalico

Hmm. So mail only goes through if the from and two address is the same?
Or perhaps it's if the to address is in a certain group (such as some
domain) to which all of your addresses belong? The latter would make
more sense.

In my case mail only goes through if the from and to address is the
same (although I can have only one address in my current domain so I
cannot test that case). But I have tried many other e-mails such as
(e-mail address removed), (e-mail address removed), (e-mail address removed) and none of them
work.
 
C

Chris Smith

In my case mail only goes through if the from and to address is the
same (although I can have only one address in my current domain so I
cannot test that case). But I have tried many other e-mails such as
(e-mail address removed), (e-mail address removed), (e-mail address removed) and none of them
work.

So if you send mail both from and to a hotmail address, it works? If
so, I'm not sure what's going on. If not, then it seems quite likely
that you're running into problems with the spam protection on the mail
server.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Staff online

Members online

Forum statistics

Threads
473,992
Messages
2,570,220
Members
46,805
Latest member
ClydeHeld1

Latest Threads

Top