我怎样才能隐藏“to”? php mail 发送的邮件中的字段
- 我正在使用 php 邮件功能来允许用户向我发送邮件 网站。
- 我还允许他们“抄送”电子邮件给自己。
制作“向我们发送消息”功能的全部目的并不是将我们的电子邮件提供给用户。但是,当用户选择“抄送”选项时,在发送给用户的邮件标题中,“收件人”字段包含我们的主电子邮件地址。
我怎样才能删除它,以便用户在收件人字段中看不到我们的主要电子邮件地址。
- I am using php mail function to allow user to send me a mail from
website. - I am also allowing them to "cc" the email to themselves.
The whole purpose of making a "send us message" feature was not give our email to the users. But when the user selects the "cc" option, in the header of the mail that is sent to the user, the "to" field contains our primary email address.
How can I remove this, so that the users do not see our primary email address in the to field.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您可以将 mailTo 设置为您域中的任意邮箱“[电子邮件受保护]”并添加您的公司地址密件抄送?
但无论你有什么理由不公开你的电子邮件,恕我直言,这是非常不礼貌的:)
You could set the mailTo to an arbitrary mailbox at your domain "[email protected]" and add your company address in BCC?
But whatever reason you have for not exposing your email, imho it's quite unpolite :)
发送给您的电子邮件必须有“收件人:”字段才能正确发送。您可以通过向办公室和客户发送单独的电子邮件来模拟抄送功能。
The e-mail message sent to you must have a To: field to be delivered correctly. You could emulate the CC feature by sending to separate e-mail messages to the office and to the client.