PDA

View Full Version : Email Recipient Type



spruneau
07-20-2010, 12:54 PM
How difficult (or hopefully easy ;-) would it be to use the TO and CC when sending an email using JavaMail? I noticed RecipientType in SPAIREMAIL, and it seems to me that I would need two InternetAddressArray (one for the TO addresses, and one for the CC addresses). Am I on the right track?

Thanks

T.Snyder
08-02-2010, 10:51 PM
Sorry for the delayed response. This is a very busy month for me. You could pass the Message.RecipientType TO into the addRecipient method. Which your title implies that you already know that answer.

I currently do not have any sample code for you, but you're on the right track. I just didn't want you to think I didn't see your post.

http://java.sun.com/products/javamail/javadocs/javax/mail/Message.RecipientType.html#TO