Hey Rob, 

Thanks for clarifying. The 10 MB UrlFetch request size limit is a hard 
limit on the service. In this case, I'd recommend using Cloud Storage to 
serve the files you want to send, as mentioned in my last reply. 

Cheers,

Nick
Cloud Platform Community

On Sunday, March 5, 2017 at 11:07:29 PM UTC-5, Rob Curtis wrote:
>
> Hi Nick,
>
> Thanks for you response. Sorry I missed this.
>
> What I meant is that the* google urlfetch limit is 10MB* limit on request 
> size, and because we have send the entire message (to sendgrid) as json 
> with B64 encoded files, we can only send a maximum of 10MB (which is the 
> limit imposted by GAE). 
>
> I wanted to know if there is any method to relax the 10MB limit imposed by 
> GAE?
>
> Thanks
> Rob
>
>
>
> On Wednesday, March 1, 2017 at 9:10:42 PM UTC+2, Nick (Cloud Platform 
> Support) wrote:
>>
>> 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/d25750ba-d8ff-43bf-87f8-59c4583a5a72%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to