Hello everyone,

I was trying to send mail to per...@domain.com and in the same mail
BCC to admins (app has 2x admin)
result is that per...@domain.com never receive mail but admins do.
I would like to ask if this is intended behaviour.

My code is following:

                InternetAddress [] replyTo = new InternetAddress[1];
                replyTo[0] = new
InternetAddress("reply_will_be_set_h...@domain.com");

                Message msg = new MimeMessage(session);
                msg.setFrom(new
InternetAddress("admin_registered_with_this_app_email_address");
                msg.setReplyTo(replyTo);
                msg.addRecipient(Message.RecipientType.TO, new
InternetAddress(
                                   "email_address_of_customer",
                                   "Dear Customer,"));
                msg.addRecipient(Message.RecipientType.BCC,
                                    new InternetAddress("admins"));
                msg.setSubject(messageSubject);
                msg.setText(messageBody);
                Transport.send(msg);

i case i remove BCC for admins, recipient.TO will get mail,
It looks like sending BCC to admins somehows removes
Message.RecipientType.TO, or is it
problem in my code ?

Thank you,

Marcus

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to google-appengine-j...@googlegroups.com.
To unsubscribe from this group, send email to 
google-appengine-java+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to