0
votes

My Django application sends email out to users. On localhost, it was using my gmail account that i set via settings.py. However, when porting the app onto Openshift, all the headers were ignored. Instead of using the application from, reply-to email addresses, email coming from application on Openshift is FROM [email protected] and no Reply-to email address.

Here is what I later found:

All e-mails routed through our servers have their From header rewritten. This will continue to function this way until we support e-mail as an "official" feature. Relaying through an external mail server should not overwrite this header." by Sumana Annam, Red Hat, Inc. https://www.openshift.com/forums/openshift/sending-email-from-jboss-by-defect-the-from-is-no-replyrhcloudcom

Does anyone find a way of sending email from Openshift where the email header does not get rewritten?

Greatly appreciate any help/direction.

1
If you use a service like SendGrid, Mandrill, Mailgun, etc. to send your emails, you can send emails through HTTP API calls, instead of STMP. Openshift wouldn't be able to rewrite/stop those - Sohan Jain

1 Answers

0
votes

The official answer is that you would need to use a third party library to remove the [email protected]. There is no way to change that header on email that is relayed through openshift's email servers.