When it fails I get exceptions that begin like this;
MessagingException: MailService IO failed (java.io.IOException:
Internal error)
javax.mail.SendFailedException: MailService IO failed
(java.io.IOException: Internal error)
at
com.google.appengine.api.mail.stdimpl.GMTransport.sendMessage(GMTransport.java:
253)
at javax.mail.Transport.send(Transport.java:95)
at javax.mail.Transport.send(Transport.java:48)
at com.hotf.server.EmailService$1.run(EmailService.java:119)
So I thought I would set up a deferred task queue and configure it to
keep trying every 15 minutes until it works.
Now emails fail with the same error for anything up to eight or nine
hours, then without reason or explanation the email service will
suddently start working and all the emails will be delivered.
I have searched through this group and found and number of people have
had problems but I don't think any of them apply to the testing I am
doing. I am sending from the email address of the apps administrator
account, I have no quotes in my email addresses etc...
The only lead I haven't followed up yet is that someone suggested the
email service is unreliable if you don't enable billing. So before I
take that step, can someone point out anything else I may be doing
wrong please.
My code is;
Properties props = new Properties();
Session session = Session.getDefaultInstance(props, null);
try {
Message msg = new MimeMessage(session);
msg.setFrom(new InternetAddress("X...@gmail.com", "SUBJECT"));
String email = a.getEmail().replace("\"","").replace("'", "").trim();
msg.addRecipient(Message.RecipientType.TO,new InternetAddress(email,
a.getName()));
msg.setSubject(subject);
msg.setText(body);
log.info("Sending notification email to " + email);
Transport.send(msg);
} catch (UnsupportedEncodingException e) {
log.log(Level.SEVERE, "MessagingException: " + e.getMessage(), e);
e.printStackTrace();
throw new RuntimeException(e);
} catch (AddressException e) {
log.log(Level.SEVERE, "MessagingException: " + e.getMessage(), e);
e.printStackTrace();
throw new RuntimeException(e);
} catch (MessagingException e) {
log.log(Level.SEVERE, "MessagingException: " + e.getMessage(), e);
e.printStackTrace();
throw new RuntimeException(e);
} catch (Exception e) {
log.severe(e.getMessage());
e.printStackTrace();
throw new RuntimeException(e);
--
You received this message because you are subscribed to the Google Groups "Google App Engine" group.
To post to this group, send email to google-a...@googlegroups.com.
To unsubscribe from this group, send email to google-appengi...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
The experience is much like mine. Sometimes every new member of my
website will activate their accounts,
but sometimes, none will activate their accounts.
Martin
On Nov 21, 9:21 am, Martin Waller <nettrekk...@gmail.com> wrote:
> Hi,
>
> I've been trying out Amazom Web Services SES for the last week and it seems to be fine. It gives you so much more detail about mail send and mail that gets rejected. I'm going to stop using the GAE mail interface.
>
> Martin
>
> On 20 Nov 2011, at 18:57, Leandro Rezende wrote:
>
>
>
>
>
>
>
> > i have the same problem. i just give up looking for a solution.
>
> > i hope this problem does not happen when i change my application to the billling status.
>
> > 2011/11/20 Jeff Gager <jeffga...@gmail.com>
> > For more options, visit this group athttp://groups.google.com/group/google-appengine?hl=en.
Really interesting that PK is getting such a good service on python,
that's really good news and indicates that the service can and
ultimately will work well in Java to.
Martin do you use Java? If you have enabled billing and you are still
getting a poor service then it looks like there is no point in me
throwing money into the pot to solve the problem with the Java Mail
Service until Google get it working properly.
In the mean time I will have a look at SES.
- Jeff
http://code.google.com/p/googleappengine/issues/detail?id=5776&can=5
- Jeff