Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / July 2006

Tip: Looking for answers? Try searching our database.

JavaMail Trouble

Thread view: 
junisalico@gmail.com - 09 Jul 2006 23:33 GMT
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
Chris Smith - 09 Jul 2006 23:38 GMT
> 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

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.

Signature

Chris Smith - Lead Software Developer / Technical Trainer
MindIQ Corporation

junisalico@gmail.com - 09 Jul 2006 23:49 GMT
> 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
myname@gmail.com, myname@yahoo.com, myname@hotmail.com and none of them
work.
Chris Smith - 10 Jul 2006 03:02 GMT
> > 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
[quoted text clipped - 6 lines]
> myname@gmail.com, myname@yahoo.com, myname@hotmail.com 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.

Signature

Chris Smith - Lead Software Developer / Technical Trainer
MindIQ Corporation



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.