简体   繁体   中英

How do I make a forward e-mail link?

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?

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 )

The good news is that email clients have Forward functionality built in, so you don't need to reinvent the wheel.

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.

Like this: 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.

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).

GraphicMail通过在电子邮件的页脚中添加一个链接,将您带到“转发到”网页( http://www.graphicmail.com/site/forward_to_friend.aspx?SiteID=xxx&SID=x&Section=xxx&FromEmail=your-- mail@domain.com&token=&EmailID=X ),允许您转发邮件,假设您发送的所有简报都具有唯一ID。

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.

You could link it like:

Click <a href="http://bmtk.net/forward.php?**uniqueid**">here</a> to forward this email to a friend!

The closest you can probably come to by using a direct hyperlink would be something like this:

mailto:some@one.name?subject=New+email&body=Blahblah

If the user tries to open this hyperlink, this should trigger the default email client of the user to pop up with a new email window where the recipient's address, subject line, and body are already filled in. I'm aware that this might not be the functionality that you're after.

Also, it is quite likely that this will not work with all email clients out there, and even if it did, it would be very cumbersome to append the whole email body to that hyperlink URL.

Therefore, I would also suggest you solve this problem either:

  • by letting the email reader directly use his email client's forward facility; or

  • direct the email reader to a web form where you let him/her supply the friend's email address, then generate the mail to be sent in a script on the server, and use an email server to directly send out mail.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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