Hello everyone,
I was trying to send mail to [email protected] and in the same mail
BCC to admins (app has 2x admin)
result is that [email protected] 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("[email protected]");
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 [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/google-appengine-java?hl=en.