Openshift覆盖电子邮件标题'from','reply-to'字段。如何发送电子邮件,而不必使用SendGrid或其他付费电子邮件服务。 [英] Openshift overrides email header 'from', 'reply-to' fields. How to send email without having to use SendGrid nor other paid email service.?

查看:289
本文介绍了Openshift覆盖电子邮件标题'from','reply-to'字段。如何发送电子邮件,而不必使用SendGrid或其他付费电子邮件服务。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有django 1.6和python 2.7部署在Openshift上。我注意到,当应用程序发送电子邮件时,Openshift将通过将字段更改为 no-reply@rhcloud.com ,忽略所有



我已经搜索过,似乎Openshift覆盖了电子邮件标题和建议是使用不是免费的电子邮件服务合作伙伴。



有什么其他方法可以避免这个ie。在启动移动时部署Django应用程序,同时仍然有应用程序按照程序中的要求发送电子邮件。这个确切的程序在测试环境和localhost上没有问题。



任何指针都非常感谢。谢谢。

解决方案

我自己正在寻找免费的SMTP库来发送电子邮件。迄今为止没有多少运气。



尝试java嵌入式SMTP库阿司匹林。我能够发送邮件但不太舒服,因为我不断得到一些未知的例外。



Apache James是另一个基于Java的SMTP服务器,但不认为我们可以嵌入到代码中。


I have django 1.6 and python 2.7 deployed on Openshift. I notice that when the application sends emails out, Openshift overrides the email header by changing the 'From' field to 'no-reply@rhcloud.com' and ignore all 'Reply-to' field that has been set in the application.

I have searched around and it seems like Openshift overrides the email header and recommendation is to use their email service partner which is NOT FREE.

Is there any other way to avoid this ie. deploy Django application on Openshift while still having the application sends email as per dictated in the program. This exact program runs with no issues on test environment and localhost.

Any pointers are much appreciated. Thank you.

解决方案

I myself is looking for free SMTP library to just send emails. So far not much luck.

Tried java embedded SMTP library Aspirin. I am able to send mails but not very comfortable working with it as I keep getting some unknown exceptions.

Apache James as another Java based SMTP server but don't think we can embed in the code yet.

这篇关于Openshift覆盖电子邮件标题'from','reply-to'字段。如何发送电子邮件,而不必使用SendGrid或其他付费电子邮件服务。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆