Sending email from Django contact form on Google App Engine redirects to 404 -
I am trying to install a DJ ango contact form on a simple blogging application which is currently hosted on Google Cloud Platform has gone. The app works locally, sends an email and redirects the end user to a full page, even though when I push it to the production server, it tries to send an email for about 30 and then I A 404 I have checked my NGX error and access logs as well as my gun log and it seems that there is a guntoony laborer time after 30 seconds, so 404. Initially Then Nne thought that because my port although lock on 587 Google Cloud network, when I said that I am open port, also keeps it failed.
My settings:
Emailer EMAIL_HOST = "send.one.com" EMAIL_PORT = "587" EMAIL_HOST_USER = "postman@email.co.uk" EMAIL_HOST_PASSWORD = "Password "DEFAULT_FROM_EMAIL =" postman@email.co.uk "SERVER_EMAIL =" postman@email.co.uk "
I try to run it via TLS using EMAIL_USE_TLS = True Is there any success but no person before facing this problem?
App Engine blocks this type of connection which opens the socket.
You have 2 options if you want to send mail to Google App Engine:
-
Use the mail API provided by Google App Engine directly, This will be a set of APIs handling mailings on Google App Engine for reference, you can see here:
-
Use the Django wrapper for the GAE Mail API, such as Created in
rocket_engine
or a standalone. If you are doing this then you can send an email like this in the same way as a DJ, this can be a plugin installed in your DNS project, and then your settings will work without any changes.
Comments
Post a Comment