1

我正在尝试为我的每个客户生成 QR 码。每个二维码都会给我创建一封电子邮件。我进行了研究,我很确定我了解如何最好地创建带有特定主题和正文的电子邮件。

  1. 创建将创建电子邮件的 mailto 代码/脚本/行。

mailto:test@gmail.com?subject=Test%20Subject&body=This%20is%20a%20test.

  1. 从脚本中创建一个 tinyurl,以创建更可靠的二维码。

http://tinyurl.com/nry2xud

  1. 使用任何标准网站制作二维码。我使用了 http://www.mobile-barcodes.com/qr-code-generator

这一切都很好,但我希望 QR 码掩盖发件人的电子邮件地址。我不想收到来自客户手机上的个人电子邮件帐户的电子邮件。我想用特定客户工作的公司地址替换他们的电子邮件地址。

这可能吗?感谢您提供的任何帮助。

4

1 回答 1

3

By definition, mailto uses whatever mail client is configured in the user's browser, and sends from their own email address. (From the spec: "Originator fields like From ... when present in the URI, MUST be ignored.")

If you have a web server somewhere, a better solution would be to avoid mailto entirely. Instead, have the QR code direct the user to a page on your server. The server script for that page (written in, say, PHP) would send you the email. Then, it would also serve up a confirmation message to the user.

于 2013-05-29T19:44:45.150 回答