On Mon, Oct 21, 2013 at 9:28 AM, Ivan Lazov <[email protected]> wrote:
> I'm using the Low-Level API to send email messages > > For security reasons GAE provides only a small set of headers that an > outgoing email can have (Sending email with headers) > > My question is this the correct way for using headers and setting an > unique id for every sent email ? > > Yes and no. Yes you have the correct general idea, but it could be implemented better. App Engine's built in mail service has been - to put it charitably - problematic for some time now. App Engine-sent mail tends to be caught in spam filters (particularly Microsoft owned services such as Hotmail) and in general has a higher bounce rate than email sent from other services. And as you saw for yourself, there are severe security restrictions such as limiting the headers that mail can have. The better alternative is to use Sendgrid. Fortunately for everybody Google has a partnership with Sendgrid, see this link for documentation: https://developers.google.com/appengine/articles/sendgrid . You get a huge free quota (25,000 emails a month) and Sendgrid has a much cleaner API for interacting with mail. For instance, to set custom headers all you need to do is supply them within a JSON object: http://sendgrid.com/docs/API_Reference/Web_API/mail.html (scroll down to the *headers* row). On Mon, Oct 21, 2013 at 9:28 AM, Ivan Lazov <[email protected]> wrote: > Also I've tried the > JavaMail<https://developers.google.com/appengine/docs/java/mail/usingjavamail> > which > allows to the Transport object (responsible for sending email messages) to > add a listener which is invoked when a message is delivered, not delivered. > But when I deployed my application in GAE I've received > AccessDeniedException. > > Which class is the AccessDeniedException coming from? Can you supply a full stack trace? ----------------- -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.
