Html 如何制作转发电子邮件链接?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2565554/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How do I make a forward e-mail link?
提问by Strawberry
So I want to make a HTML news letter to be sent out. I want to make a "Forward to Friend" button, but how would I link that?
所以我想制作一个 HTML 新闻信件发送出去。我想制作一个“转发给朋友”按钮,但我该如何链接它?
回答by Quentin
The short answer is that you can't. Email clients don't provide a way for emails to trigger their Forward functionality.
简短的回答是你不能。电子邮件客户端不提供电子邮件触发其转发功能的方法。
The closest you could come would be to provide a link to a form which asks people to give you email addresses belonging to third parties to which you could then send email. (If I was that third party, the email would be dropped directly in my spam bin, possibly after filling out the annoying form for reporting spammers that is available from the OIC)
您最接近的是提供一个表格的链接,该表格要求人们向您提供属于第三方的电子邮件地址,然后您可以向其发送电子邮件。(如果我是那个第三方,可能在填写了OIC提供的举报垃圾邮件发送者的烦人表格之后,该电子邮件将直接放入我的垃圾邮件箱中)
The good news is that email clients have Forward functionality built in, so you don't need to reinvent the wheel.
好消息是电子邮件客户端内置了转发功能,因此您无需重新发明轮子。
回答by Soteriologist
The little trick I use is to leave the "mailto" part blank, and then in the the "body" section put in a link that points to an online archive of the html email I just sent them.
我使用的小技巧是将“mailto”部分留空,然后在“正文”部分中放置一个链接,该链接指向我刚刚发送给它们的 html 电子邮件的在线存档。
Like this: mailto:?Subject=Subject%20From%20My%20Original%20Email&body=Link%20To%20Online%20Archive%20of%20Original%20Email:%20http://www.bing.com/
像这样:mailto:?Subject=Subject%20From%20My%20Original%20Email&body=Link%20To%20Online%20Archive%20of%20Original%20Email:%20http://www.bing.com/
In outlook, link is automatically turned into a hyperlink AND their cursor defaults to the "To" field because it's the only thing left blank.
在 Outlook 中,链接会自动变成超链接,并且它们的光标默认为“收件人”字段,因为它是唯一留空的地方。
I did this as a quick work around until we code a landing page for them to fill out a form and enter their friends email address, etc. This way if anyone comes across a link to our archived email on our SITE, they'll have the handy link in it to auto-open their email for them and start a message to their friend(s).
我这样做是为了快速解决问题,直到我们为他们编写登录页面以填写表格并输入他们朋友的电子邮件地址等。这样,如果有人在我们的网站上看到指向我们存档电子邮件的链接,他们就会有方便的链接为他们自动打开他们的电子邮件并向他们的朋友发送消息。
回答by icc97
GraphicMaildo it by adding a link into the footer of the email that takes you to a 'Forward to' webpage (http://www.graphicmail.com/site/forward_to_friend.aspx?SiteID=xxx&SID=x&Section=xxx&[email protected]&token=&EmailID=X) that allows you to forward the mail assuming that all the newsletters you send out have a unique ID.
GraphicMail通过在电子邮件的页脚中添加一个链接来实现它,该链接会将您带到“转发到”网页(http://www.graphicmail.com/site/forward_to_friend.aspx?SiteID=xxx&SID=x&Section=xxx&FromEmail=your- [email protected]&token=&EmailID=X) 允许您转发邮件,假设您发送的所有新闻通讯都有唯一的 ID。
回答by Rev316
I'd try to go with the server side script route.
我会尝试使用服务器端脚本路由。
With PHP, use the mail function and retrieve the TO:$person from a post variable that is sent.
对于 PHP,使用 mail 函数并从发送的 post 变量中检索 TO:$person。
You could link it like:
你可以像这样链接它:
Click <a href="http://bmtk.net/forward.php?**uniqueid**">here</a> to forward this email to a friend!