Hi,
I am trying to send a simple text message email via JavaMail api on
GAE. It seems to work fine when the message body text length is under
2999 characters. However, when the message text length is longer than
2999 (sometimes even less), The message is never delivered to the
recipient(s). The Transport.send(msg) returns just fine, and no
exception was thrown and no logged error message on the server log. Is
this a known problem? Any body know how to workaround it? The code is
written according to the
documentation
http://code.google.com/appengine/docs/java/mail/usingjavamail.html.
Thank you,
Shirley
try
{
MimeMessage msg = new MimeMessage(session);
// Set the from field to the admin account.
msg.setFrom(new InternetAddress(ADMIN_EMAIL, ADMIN_NAME));
// Add the recipients.
msg.addRecipient(Message.RecipientType.TO, new
InternetAddress(emailAddress, ""));
// Set the subject.
msg.setSubject(subject);
// Set the message text.
msg.setText(message);
// msg.setText(message);
_logger.info("send 5");
// Send the message.
Transport.send(msg);
}
catch (Exception ex)
{
_logger.info("Send email failed due to exception:
"+ex.getMessage());
}
--
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.