发送具有新域的电子邮件? [英] Send emails with a new domain?

查看:129
本文介绍了发送具有新域的电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是Web应用程序中的电子邮件系统的新手.我已经构建了Django应用,并且想要添加发送电子邮件功能.我购买了"mydomain.com"之类的域名,并且想从"services@mydomain.com"发送电子邮件.仅使用山d可以做到吗?

I am new to the emailing systems in web applications. I've built a Django app and I'd like to add a send email functionality. I bought a domain like 'mydomain.com' and I want to send emails from 'services@mydomain.com'. Is this possible using only mandrill?

编辑

我只有域,我的域还没有创建任何电子邮件地址,这是我第一次掌管此域,我想知道如何创建电子邮件地址并使用它通过以下方式发送消息我的django应用和山d.

I have just the domain, there's no yet any email address created with my domain, this is the first time I am in charge of this and I'd like to know how to create emails addresses and use it to send messages via my django app and mandrill.

在我的设置中,我使用的是"gmail"帐户,

I have this working with a 'gmail' account, in my settings I have:

# EMAIL

DEFAULT_FROM_EMAIL = 'myaccount@gmail.com'
SERVER_EMAIL = 'myaccount@gmail.com'
EMAIL_HOST_USER = 'myaccount@gmail.com'
EMAIL_HOST_PASSWORD = 'myPassWord'
EMAIL_HOST = 'smtp.gmail.com'
EMAIL_PORT = '587'
EMAIL_USE_TLS = True

推荐答案

Djrill 是Django的Mandrill电子邮件后端.它使用Mandrill HTTP API而不是SMTP,如果您在阻止传出SMTP端口的环境中运行,或者在发送消息后需要从Mandrill获取扩展状态,则它会很有帮助.

Djrill is a Mandrill email backend for Django. It uses the Mandrill HTTP API rather than SMTP, which can be helpful if you are running in an environment that blocks outgoing SMTP ports or you need to get extended status from Mandrill after sending a message.

否则,如其他答案中所建议的那样,使用Mandrill的SMTP集成就可以了.

Otherwise, using Mandrill's SMTP integration works just fine, as suggested in other answers.

这篇关于发送具有新域的电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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