To all PHP developers: I have searched high and low for some kind of simple PHP form that I can include with my (snazzy) email newsletters. These newsletters are in HTML, not just a text job. I want recipients to be able to type in the email address of a friend into a form box, then have a PHP form handler take the newsletter and forward it to this friend. Simple ... but not to be found! All I could get is an ASP program for it.

Now, I know that anything ASP can do you can do better ... I look forward to your replies.

Tony B

    You mean this HTML email has a form that the user fills out and submits? Not that I use HTML email, but as far as I can see that doesn't require any additional "program"; an HTML form is an HTML form, and it wouldn't matter to the server whether it was in an email or on a web page.

      Thanks for the question. I've seen this once in another email newsletter, like I said it was an ASP function that my current server doesn't accept.

      The newsletter has a link, labelled Forward To A Friend, to a form where you type in your friend's email address. The entered address sends a copy of the newsletter that it's a part of to this new email address. Kinda neat.

      I still have the newsletter, I can forward it to you if you want to look at it.

      Tony

        24 days later

        We do this with our newsletters.

        All you have to do is store the html code for the newsletter in a database, then write a script that collects the email address they want to send the newsletter to, and the id of the form from the clicked link (ie. http://yourdomain.com/sendtofriend.php?id=34)

        When they have put in their friends email address, and they hit submit, it will read the newsletter from the database and send that to the new email address that was specified on the previous page.

        Hope this helps!

          Write a Reply...