File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes problem in send mail using java for group of person Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "problem in send mail using java for group of person" Watch "problem in send mail using java for group of person" New topic
Author

problem in send mail using java for group of person

vijayakumar durai
Ranch Hand

Joined: Aug 18, 2008
Posts: 153
my requirment is i want to send the mail for some group of person .suppose if user given one mail id is wrong.the mail is not going for other person.i know how to get the wrong mail ids and display to user mail id is wrong and send mail to other person.i am using smtp for sending mail .if you have code give to me





thanks in advance
fred rosenberger
lowercase baba
Bartender

Joined: Oct 02, 2003
Posts: 10916
    
  12

Nobody here is going to 'give you the code'. That's not what we do here.

People will bend over backwards to help you write the code yourself, answer any java-related questions you may have, or point out mistakes if you post your code. Note that I don't mean 'post 2000 lines of code and we'll debug it', but more 'here is the relevant 10-20 lines of code, it does X when I think it should be doing Y'.

You may want to read some of these, but specifically this, this, this and this.
[ November 20, 2008: Message edited by: fred rosenberger ]

There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
vijayakumar durai
Ranch Hand

Joined: Aug 18, 2008
Posts: 153
if somebody give invalid address .. the mail is not going for other person

can anybody tell how to catch invalid address and display the mail is not going for this person.

my coding is



[ UD: fixed CODE tag ]
[ November 20, 2008: Message edited by: Ulf Dittmer ]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 39551
    
  27
You won't know which emails won't go through when you send them. They could bounce back later for any number of reasons. What you need to do is to catch the bounces and deal with those separately.


Ping & DNS - updated with new look and Ping home screen widget
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18141
    
    8

You mean that if your list of addressees is "billgates@microsoft.com" (valid) and "bzzt#####?" (not valid) then the message doesn't get sent to Mr. Gates?

If that's the case then maybe you'll have to change something in that SmtpClient class. Or maybe it has a parameter which allows it to be told not to do that. Without knowing anything about that class, though, it's hard to say anything useful.

I know there's a system property in JavaMail which you can set to send a message to the valid addresses even if there are some invalid addresses, but that may not be helpful if your SmtpClient class doesn't use JavaMail.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem in send mail using java for group of person
 
Similar Threads
Fetching all email Ids from a parent/group Id
Problem with Java Mail
Problem with java mail
Getting the mail group from LDAP
Java Mail