google-app-engine


Send Emails From AppEngine Locally


The subject of the post says it all: I want to be able to send emails from AppEngine when it is running locally. As far as I understood from this post:
to send emails from Google appengine
I have to setup a mail server. Can anyone tells me some easy steps to install a mail server locally and use it with Google AppEngine?
OK, I found a good solution for this question. Basically, just install sendmail tool, then use the option --enabled_sendmail when calling dev_appserver.py. So here is what I did (I use Ubuntu):
sudo apt-get install sendmail
Then whenever I call dev_appserver.py, I call it like this:
~/google_appengine/dev_appserver.py --enable_sendmail --port=8081 ./appengine/
Notice the --enable_sendmail option.
I believe there can't be an easier solution than this :-)
Why do you want to send mail from AppEngine while running locally? If it's just for testing purposes, Python comes with a built-in SMTP server that will log to the console for you:
python -m smtpd -n -c DebuggingServer localhost:1025

Related Links

GAE custom Go runtime - internal.flushLog error
Google Datastore - Search Optimization Technique
Can't lease tasks by service account
Why custom domain “myapp.com” which replaces “myapp.appspot.com” took so long to load when comparing to “myapp.appspot.com”?
Does objectify have a get_or_insert equivalent
Custom domain from google not routing to App engine site
Unable to stop or delete datalabs environment on Google Cloud Platform
Is there a way to interactively create a new Datastore entity kind for Go GAE apps?
Is IP address from GoogleAppEngine URLFetch in same project static?
Index Disadvantages
Communications link failure when connect to Google Cloud SQL(second gen) only from prod
How do I add a Google Cloud Endpoints Module to my Android project in IntelliJ?
Does anyone know how to configure grunt-gcloud?
Can I have two instances on same App Engine project - Java servlet and Endpoints side by side?
Validate appspot application for mailgun
Google App Engine: Development only route in app.yaml

Categories

HOME
uml
twitter-bootstrap-3
jpa
spark-streaming
jwplayer
jsf-2.2
error-handling
owl-carousel
opendj
spring-data-mongodb
hugo
polling
jtextpane
recordrtc
arangodb
endeca
heap
pega
mxgraph
datastage
code-generation
zerobrane
eip
magnetic-cards
cumulocity
keytool
digital-signature
oledb
rubymotion
ksh
r-mice
imageresizer
google-cloud-print
opentk
has-and-belongs-to-many
handler
finagle
send
event-flow
database-comparison
git-squash
autolisp
android-sugarorm
contacts
yowsup
batching
imx6
watchman
cin
print-css
phpdbg
fclose
vugen
arq
compiler-design
java-websocket
flyout
trigger.io
vibrate
ampps
branch-prediction
rocks
usart
preprocessor
xcode-server
uicolor
dimension
eigenvector
appscale
cfchart
libav
np-spring
qbxml
design-principles
pypiserver
django-urls
doctype
vacuum
sql-server-data-tools
avahi
teamcity-9.1
sql-scripts
easyrtc
teaspoon
named-parameters
lnk
alternate
rfc5322
light
gd-graph
jquery-1.9
mysql-error-2013
android-sdk-2.3
idn
curb
pstack
iboutlet
isa-swizzling
role
mysql-error-1205
clrstoredprocedure
appledoc
cac
metaweblog
load-time
instantiationexception
globals
maven-1
addchild
xslcompiledtransform

Resources

Encrypt Message