Hey Rob, The attachment size limit for the Mail API can't be relaxed. Sendgrid's limit is larger, at 30MB <https://sendgrid.com/docs/Classroom/Build/Add_Content/attachments.html>, but I'm unsure what you mean in your post. Do you mean to say that files, when b64 encoded, will be larger than *30 *MB (the sendgrid limit)?
One way you can get around this entirely (and solutions like this are becoming more and more popular as cloud storage becomes cheaper and cheaper) is to store the items in Cloud Storage <https://cloud.google.com/storage/> and send an email to your user with a Signed URL <https://cloud.google.com/storage/docs/access-control/signed-urls> for downloading it, or add their email to the ACL <https://cloud.google.com/storage/docs/access-control/lists> on the object / bucket and serve them a simple URL like storage.googleapis.com/*<bucket>*/ *<object> *(read more on such URL's here <https://cloud.google.com/storage/docs/request-endpoints>). Let me know if you have any further questions and I'll be happy to assist. Cheers, Nick Cloud Platform Community Support On Tuesday, February 28, 2017 at 10:22:11 AM UTC-5, Rob Curtis wrote: > > Hi, > > We have an application where a list attachments must be sent in a single > mail to 1 address. > Sendgrid has 30MB limit on attachment size, but Appengine has a 10MB limit > on request size. > The sendgrid api requires base64 encoding of the files, which results in > the request size being larger than 10MB (if the files are large) > > > 1. Is there an alternative method for attaching files to a mail in > sendgrid? > 2. Is there means to change the request size in AppEngine or use some > mechanism for calling the sendgrid API? > > Thanks > Rob > -- 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 https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/2bfa2dea-aed5-431d-89eb-05f141473a96%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
