Nothing in the log about failed messages. I've made a Grails Service
sending my emails. Basiclly I just cut and pasted the info from
http://code.google.com/appengine/docs/java/mail/usingjavamail.html,
and modified it to fit my needs. Just as a quick version to get it
working. I pasted the service below.


class MailService {

        boolean transactional = true

        def sendMail(subject, msgBody, from, fromText, too, tooText) {


                Properties props = new Properties();
                Session session = Session.getDefaultInstance(props, null);


                try {
                        def msg = new MimeMessage(session);
                        msg.setFrom(new InternetAddress(from, fromText));
                        msg.addRecipient(Message.RecipientType.TO,
                                                        new 
InternetAddress(too, tooText));
                        msg.setSubject(subject);
                        msg.setText(msgBody);
                        Transport.send(msg);

                } catch (AddressException e) {
                        log.error("address error sending mail", e)
                } catch (MessagingException e) {
                        log.error("messaging exception sending mail", e)
                }

        }
}

On Aug 20, 8:48 pm, "Jason (Google)" <[email protected]> wrote:
> Did you check your application's logs to see if there were any errors
> sending the messages? What code were you using to send the emails?
> - Jason
>
> On Wed, Aug 19, 2009 at 7:47 AM, DrMorten <[email protected]
>
> > wrote:
>
> > I sent about 7 emails last night to my own email address. They havnt
> > arrived, Ive checked the code and the addresses were right. The Quotas
> > say that I've sent the e-mails.
>
> > Anyone have an idea of how long it should take to send to a gmail
> > address?
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to