AppEngine Email : Unauthorized Sender

Viewed 1471

When I try to send mail I get a "Unauthorized sender" exception

javax.mail.SendFailedException: Send failure (javax.mail.MessagingException: Illegal Arguments (java.lang.IllegalArgumentException: Unauthorized Sender: Unauthorized sender)) at javax.mail.Transport.send(Transport.java:163) at javax.mail.Transport.send(Transport.java:48)

My code to send mail is very simple:

Session session = Session.getDefaultInstance(new Properties(), null);
MimeMessage msg = new MimeMessage(session);
msg.setFrom(new InternetAddress("admingae@tecurti.com", "Adming"));
msg.addRecipient(Message.RecipientType.TO, new InternetAddress("name@gmail.com", "Felipe"));
msg.setSubject("Assunto", "UTF-8");
msg.setText("texto corpo");
Transport.send(msg);

I´ve already give to admingae@tecurti.com "owner" permission on admin console.

Here is my App Engine Console permission

If anyone could help me I appreciated

thanks


Solutions Thanks to Andrei Volgin I will register the solution

Admin Console Correct Register

2 Answers
Related