Sending Admin Email

71 views
Skip to first unread message

Rodrigo Teixo

unread,
Mar 5, 2012, 9:37:06 AM3/5/12
to Google App Engine
Hi,

I trying to send a admin email, but the quota is counting as a regular
email sent instead of count as a Admin Emailed.

The documentation dont have a simple question like this to be finded.

Code being used:
Message msg = new MimeMessage(session);

msg.setFrom(new InternetAddress(myEmailAdminHere));

msg.addRecipient(Message.RecipientType.TO,
new
InternetAddress(myEmailAdminHere));

msg.setText(msgBody);
Transport.send(msg);

Thanks in advance for any help.
[],
Rodrigo.

Kenneth

unread,
Mar 5, 2012, 10:52:53 AM3/5/12
to google-a...@googlegroups.com
There's a specific api to send admin messages, don't use the usual one.

Rodrigo Teixo

unread,
Mar 5, 2012, 11:21:25 AM3/5/12
to Google App Engine
So please, do you know the api name for send admin emails?

Cause I didnt found either on documentation neither in google search!

Thanks in advance,
[],
Rodrigo.

Kenneth

unread,
Mar 5, 2012, 1:37:27 PM3/5/12
to google-a...@googlegroups.com
Actually for java it is isn't a special api, but sender.  See http://code.google.com/appengine/docs/java/mail/usingjavamail.html

"The low-level API includes a convenience method for sending mail to all of the application's administrators. To do this in JavaMail, use admins (with no at-symbol or domain) as a recipient."

That's all I got.
Reply all
Reply to author
Forward
0 new messages