Posted By:
fake_fake
Posted On:
Friday, January 20, 2006 01:06 AM
What's the differences btw using Transport.send(msg); and t.send(msg) or t.sendMessage(msg,add_array); Recently, i tried to send multi recepients (TO ,CC, BCC). I did that way! msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to,false)); msg.setRecipients(Message.RecipientType.CC,InternetAddress.parse(cc,false)); msg.setRecipients(Message.RecipientType.BCC,InternetAddress.parse(bcc,false)); Transport.send(msg); then got SendFailedException Why? if i do this way t.send(msg,add_array); , work properly. if i do so, i cant set multi recepient type(TO ,CC, BCC).
More>>
What's the differences btw using
Transport.send(msg); and t.send(msg) or t.sendMessage(msg,add_array);
Recently, i tried to send multi recepients (TO ,CC, BCC).
I did that way!
msg.setRecipients(Message.RecipientType.TO,InternetAddress.parse(to,false));
msg.setRecipients(Message.RecipientType.CC,InternetAddress.parse(cc,false));
msg.setRecipients(Message.RecipientType.BCC,InternetAddress.parse(bcc,false));
Transport.send(msg);
then got
SendFailedException
Why?
if i do this way
t.send(msg,add_array);
, work properly.
if i do so, i cant set multi recepient type(TO ,CC, BCC).
Why?
<<Less