This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes using java mail API Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "using java mail API" Watch "using java mail API" New topic

using java mail API

siva kumar
Ranch Hand

Joined: Sep 03, 2004
Posts: 86
i'm using java mail to send emails.
If i give 2 email addresses for to addresses,
if one is invalid the exception is thrown and email is not sent to valid to address also.but i want email to b sent to b sent to valid address
how to do that.
Ghulam Rashid
Ranch Hand

Joined: Jan 14, 2002
Posts: 278
I think probably you need to handle this in the catch block. And, from the catch block you need to validate the valid EMail Address and then calling your send method to send the mail.

You might think of other possibilites too ....

SCJP, BEA Certified Dev for WLS
wood burning stoves
subject: using java mail API
Similar Threads
Sending Email from Java
Space checking in a String
How to increase speed of mail process
Read receipt
javamail with to: list repeated