On Wed, Dec 25, 2013 at 5:57 AM, Cengiz Öner <[email protected]> wrote:
> I have built a small AppEngine app that emails the only admin, myself, > when a form is posted. However the quota is being deducted from > "Recipients Emailed" and not "Admins Emailed." What am I missing here? > The recipient email address is listed as the owner of the app. Why is the > quota deducted from "Recipients Emailed?" > As Mars said, using the Admins Emailed quota requires using the sendToAdmins function, not the general mail function. Here's sample code: MailService.Message message = new MailService.Message(); message.setSubject(subject); message.setTextBody(body); message.setSender(permitted_sender_address); MailServiceFactory.getMailService().sendToAdmins(message); Remember to import the Mail low level API: https://developers.google.com/appengine/docs/java/javadoc/com/google/appengine/api/mail/package-summary ----------------- -Vinny P Technology & Media Advisor Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/groups/opt_out.
