1

While working locally on the dev server, GAE doesn't send any emails out. Unless running it with the following command:

dev_appserver.py --enable_sendmail myapp

This would rely on a local sendmail to be setup.

I am using Ubuntu now for some time and I never came across something so difficult to setup. I came across this solution and 5 other tutorials. The mail.log shows that the email was accepted and sent out, but google times out.

Jun 28 12:13:38 tp sm-mta[15964]: r5SAnXFV014925: to=<kave@gmail.com>, ctladdr=<kave@localhost.localdomain> (1000/1000), delay=00:24:05, xdelay=00:00:00, mailer=esmtp, pri=210342, relay=alt4.gmail-smtp-in.l.google.com., dsn=4.0.0, stat=Deferred: Connection timed out with alt4.gmail-smtp-in.l.google.com

I would be happy to give up and rely on the log files. But the command line ouput doesn't show the email body:

INFO     2013-06-28 11:17:40,146 mail_stub.py:140] MailService.Send
  From: admin@mydomain.com
  To: kave@gmail.com
  Subject: Invitation to join xxx
  Body:
    Content-type: text/plain
    Data length: 347

It is so frustrating. Any ideas please?

Update: I have tried to run it with the VM arguments:

enter image description here

But I get this error message: enter image description here

Community
  • 1
  • 1
Houman
  • 64,245
  • 87
  • 278
  • 460
  • Have you tried `dev_appserver.py --show_mail_body=yes`? Once I started using it, I could see email bodies in the logs. – Ryan Nov 29 '14 at 05:40

1 Answers1

1

I ran into this same issue a couple weeks ago. I ended up adding the following VM arguments to eclipse when running the DevAppServer:

-Dmail.log_mail_level=WARNING -Dmail.log_mail_body=true

Robert Parker
  • 605
  • 4
  • 7