Not able to send mail with attachment by mailgun api

38 views
Skip to first unread message

Edunext Jain

unread,
Jul 29, 2016, 1:10:46 PM7/29/16
to Google App Engine

I am building Appengine application using JAVA

I am using mailgun api for mail.
I have some HTML content which I want to send as attachment, Please help me out to do so, as FileDataBodyPart takes object of java.io.File which I am unable to create as per Appengine's restriction.

Also I have some files stored on Google Storage and not able to send as attachment due to same above mentioned reason.

Nick (Cloud Platform Support)

unread,
Aug 2, 2016, 3:07:55 PM8/2/16
to Google App Engine
Hey Edunext,

I'll reproduce the comment I left on the Public Issue Tracker thread which it appears was created parallel to this thread:

File objects are excluded from use in App Engine Standard Environment apps, although you have two options here:
* Put a URL to the bucket object into the email
* Use the Flexible Environment to deploy an app which can read use File objects
This issue will close as WorkingAsIntended, since it's not a platform issue but a specific issue technical support question which has an existing answer available through a search of the documentation or Stack Overflow. Feel free to use this forum in future to report platform issues. If you'd like to ask a specific technical support question, post it to Stack Overflow, or if you have a more general question, feel free to post to the Google Groups forum for App Engine [1].
[1] https://groups.google.com/forum/#!forum/google-appengine;context-place=overview
As a more general response, please make sure to only post in the most relevant forum. In this case, this forum was the correct place to post.

Cheers!

Nick
Cloud Platform Community Support
Reply all
Reply to author
Forward
0 new messages