简体   繁体   中英

Forward This E-Mail PHP Script?

Does anyone know where and or how I can build a PHP Script for a Newsletter that would allow the end-user to Forward their received E-Mail to a friend or so?

Basically, allowing them to take the entire body and subject of the e-mail and open up a new E-Mail Draft which would allow them to enter in the contacts they want to forward the e-mail to?

I am fully aware that this function is available in most, if not all, e-mail clients to this day. But it is requested that this functionality be added within the newsletter.

Any guidance? Any concepts? Any feedback would be greatly appreciated.

Thank you!

If I understand you correctly, you'd need to do the following:

  1. in your email create a "Forward to friend" link that directs the user to a php page on a remote server.
  2. On the remote page, create a script that would contain a form asking for the email address of the friends to email.
  3. Use the mail() function (Or 3rd party class) to mail the users

EDIT:

You can take it another step further by using one of Google's API's to automatically grab email addresses from the users account (Like LinkedIn etc.)

Have a look at ZF's Mail class , which allows to fetch emails using POP3 or IMAP and finally decompose emails into parts.

The ZF documentation page provides extensive sample code .

Add link to email which directs user to a web page that contains

<form action="sendmails.php"> 
<input name="sendto" type="text"/> 
...

and send more letters from there..

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