简体   繁体   English

从我的网站向用户发送邮件

[英]Sending mail to users from my site

I'm using AuthSMTP which is a paid SMTP Relay service. 我正在使用AuthSMTP,这是一项付费的SMTP中继服务。 They only support a finite amount of "from" email addresses, which must be proper accounts. 他们仅支持有限数量的“发件人”电子邮件地址,该地址必须是正确的帐户。

This is my first site build and I'm trying to get my head around how to implement email. 这是我的第一个网站构建,我正在努力使自己了解如何实施电子邮件。

When a user registers with the site or forgets their password, I have an 'info' email account which these messages come from. 当用户在网站上注册或忘记密码时,我有一个“信息”电子邮件帐户,这些邮件来自此帐户。 This works. 这可行。

However, how do I go about the contact form? 但是,如何处理联系表? I want the email to come from the user who filled in the contact box TO the info inbox. 我希望电子邮件来自填写联系人到“信息”收件箱的用户。 I need to be able to reply directly to them. 我需要能够直接回复他们。

How can I do this is my server won't allow the email to come "from" the user? 我该怎么办,因为我的服务器不允许电子邮件“来自”用户? if I use the "reply-to" in the headers, what do I put for the "from" field? 如果我在标题中使用“回复”,我应该在“发件人”字段中输入什么?

放置您用来登录的电子邮件地址

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM