Hey PK,

Thanks for your questions. I'll answer them numerically:

1. I wasn't speaking from the docs but making an inference based on the 
limitations on the use of the Mail API, and the fact that our documentation 
<https://cloud.google.com/appengine/docs/python/mail/sendgrid> on Sendgrid 
speaks of it as a good solution for bulk emails. 

2. As mentioned, you can make a feature request 
<https://cloud.google.com/appengine/docs/python/mail/sendgrid> for such a 
feature and it will be triaged and implemented depending on the amount of 
stars on the feature request and the plans of our developers.

To make a feature request for a feature you desire is the best way to get 
your idea to Product Managers, Engineers or anybody else who can make a 
decision. The use-case you outline is quite clear, and I encourage you to 
make that feature request. 

Best wishes,

Nick

On Monday, September 14, 2015 at 5:29:56 PM UTC-4, PK wrote:
>
> Hi Nick,
>
> 1. Can you please point me to your documentation and marketing material 
> where it states:  "The Mail API is really meant for more admin-purpose mail 
> sending”. Even if you added recently, when I built my app this was not 
> there. But even then admins needs attachments too.
> 2. What you call the “in theory” stuff is where I expect Google to add 
> value by integrating all the pieces together and provide superior 
> performance. You are the only ones you can do it.
> 3. Google App Engine mail works mostly great for my purposes. I can find 
> another API mail vendor who offers me uploading my files to Amazon S3 and 
> then send them from their service but I would need two more accounts, a lot 
> of data moving in and out from multiple services (you know egress data is 
> expensive, right???) the whole reason I use GAE is to find pretty much all 
> the services in one place and not having to move data around the internet.
>
> I hope your product managers take a look at this because it really shows a 
> use case that only Google can efficiently do by putting all your services 
> to work together.
>
> 1. Use GAE to upload a file into GCS
> 2. Send an e-mail that refers that file as an attachment
>
> OR
>
> 1. An incoming e-mail arrives with attachments
> 2. The attachments are immediately stored in a  bucket in GCS
> 3. The API delivers a manageable message to my GAE with pointers to the 
> attachments in GCS
>
> Hey think, beautiful demos that show three of your services playing 
> together in a future Google I/O, and a customer (me) behind it already 
> using it…
>
> Best,
>
>
> On Sep 14, 2015, at 9:51 AM, Nick (Cloud Platform Support) <
> [email protected]> wrote:
>
> Hey PK,
>
> The Mail API is really meant for more admin-purpose mail sending, and if 
> you have a requirement for mass email sending, heavy attachments, or 
> advanced features, Sendgrid is really the way to go. To overcome the 
> problem of reading files into memory, you could always create links on your 
> own app which map to a given file and would send a redirect response to the 
> temporary signed serving URL for the Cloud Storage object 
> <https://cloud.google.com/storage/docs/access-control?hl=en>. This will 
> make your mail messages much smaller and faster as well.
>
> If you're interested in sending attachments themselves, you will have to 
> load the data into memory in order to send the email, since the bytes have 
> to actually be written into the body of the message, and this is no 
> different as for any email service. The mail message simply has to contain 
> the data of the file. Of course in theory the infrastructure could find a 
> way to insert this into some kind of proto-messsage lacking the file data 
> which is intercepted, filled, and then sent on its way, you'd need to make 
> a feature request, which you've already done, so that's good. 
>
> Best wishes,
>
> Nick
>
> On Monday, September 14, 2015 at 12:33:03 PM UTC-4, PK wrote:
>>
>> Unfortunately, the send mail API does not have a way to send as an 
>> attachment files from cloud storage. In our applications, this forces us to 
>> read the whole attachment to main memory and then use the mail API to send 
>> it. For big attachments this quickly overwhelms small footprint instances.
>>
>> The same goes for incoming e-mail with attachments, it would be nice to 
>> go directly to cloud storage.
>>
>> Please star this: 
>> https://code.google.com/p/googleappengine/issues/detail?id=10560
>>
>> Does anybody have experience how this would work with sendgrid? Can I 
>> stream an big attachment to a storage location and then send an e-mail 
>> referring to that location and the same for incoming messages with 
>> attachments?
>>
>> On Sep 14, 2015, at 9:13 AM, Nick (Cloud Platform Support) <
>> [email protected]> wrote:
>>
>> Hi Snahasish,
>>
>> It's definitely possible to do what you're thinking of. You can use Cloud 
>> Storage <https://cloud.google.com/storage/> or Blobstore 
>> <https://cloud.google.com/appengine/docs/python/blobstore/> to upload 
>> and read files to/from your App Engine instances, and you can use the Mail 
>> API <https://cloud.google.com/appengine/docs/python/mail/> or Sendgrid 
>> <https://sendgrid.com/> to send the mail. You should use Sendgrid if you 
>> intend to use more than the quota allowed for the Mail API. 
>>
>> I hope you are able to find what you need by reading in the docs related 
>> to those services. 
>>
>> Sincerely,
>>
>> Nick
>>
>> On Saturday, September 12, 2015 at 7:12:02 AM UTC-4, snahasis ghosh wrote:
>>>
>>>
>>>
>>> <http://stackoverflow.com/questions/32538058/file-upload-in-google-stroage-and-send-mail-using-app-enngine#>
>>>
>>> Hi,  
>>>
>>> I am new in Google app engine.
>>>
>>> I need some help and suggestion from you.
>>>
>>>
>>> I have an project in Google app engine, 
>>>
>>> for example http://devSend.appspot.com/ <http://devsend.appspot.com/>
>>>
>>>
>>> <http://devsend.appspot.com/>
>>>
>>> I have another application written in GWT 2.7.0 and SmartGWT5.1 and 
>>> deployed in Tomcat 7 java 1.8 (64 bit).
>>>
>>> From this application I want to upload a file(.np3) 
>>> https://devSend.appspot.com/devstore/indfs01 
>>> <https://devsend.appspot.com/devstore/indfs01> location. 
>>>
>>> Also I want to send mail using Google app engine from http://devSend 
>>> <https://devsend.appspot.com/devstore/indfs01>send.appspot.com/dev 
>>> <https://devsend.appspot.com/devstore/indfs01>send.
>>>
>>>
>>> All the path are configured.
>>>
>>>
>>> Is it possible to achieve this ?
>>>
>>>
>>> From where I have to start ?
>>>
>>>
>>> Please help me.
>>>
>>>
>>> Regards
>>>
>>>
>>> Snahasish
>>>
>>>
>>>
>>>
>> -- 
>> 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.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/google-appengine/9a0ee09a-6259-4c1b-96f3-219517ed8904%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/9a0ee09a-6259-4c1b-96f3-219517ed8904%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>
>> PK
>> [email protected]
>>
>>
>>
>>
>>
> -- 
> 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.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/google-appengine/ed958c63-0522-4c03-8c31-3281bce6ef1d%40googlegroups.com
>  
> <https://groups.google.com/d/msgid/google-appengine/ed958c63-0522-4c03-8c31-3281bce6ef1d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
>
>
> PK
> [email protected]
>
>
>
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/4ee451a6-097b-413e-ad7e-b8cca6529a45%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to