Solved

PHP 'send to friend' form to email script with multipart text/HTML content

Posted on 2008-06-11
2
1,397 Views
Last Modified: 2008-06-13
Hi

I'm putting together a website and I need a 'send to a friend' form to enable people to forward campaign details on by email. I have no experience with PHP. I know there is a recent version of PHP on the Linux server hosting the site but there are no extras included with my hosting options so I need something that uses the in-built PHP mail function.

Perhaps I'm being too ambitious here but ideally I want a basic HTML form which collects the name/email of the sender/recipient, and then sends a formatted multipart email to the recipient and a blind copy to me. Ideally the email needs to be personalised with the name.

In ASP I'd usually do this by passing the name as a query string to a formatted HTML page, incorporating a second text page, and sending both as a multipart using ASPEmail.

The HTML part is not a problem, but can someone direct me to a PHP script which will show me how to pull the form fields in; format an HTML email with an image and a text alternative; and then send to the email address extracted from the form? I have had a look around and can't find what I'm looking for.

The more idiot-proof it is the better :-)
0
Comment
Question by:Nick--H
2 Comments
 
LVL 17

Accepted Solution

by:
nplib earned 500 total points
ID: 21761889
http://phpmailer.codeworxtech.com/

no install, just place files in document root of website
0
 

Author Comment

by:Nick--H
ID: 21776743
Perfect - thanks!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to create an extensible mechanism for linked drop downs.
The viewer will learn how to count occurrences of each item in an array.
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.

759 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now