dcsimg
Stupid Tranport class! problem with TO,CC,BCC
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

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

Re: Stupid Tranport class! problem with TO,CC,BCC

Posted By:   Almagest_FUTT  
Posted On:   Monday, January 23, 2006 05:29 AM

then got SendFailedException

What's the error message ?
About | Sitemap | Contact