Solved

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

Posted on 2008-06-11
2
1,409 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

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Wordpress French and English Site 6 98
Force PDF to open inline as opposed to dowload 16 35
PHP function parameters defined 14 39
Change a button after e-mail 4 19
This article discusses how to create an extensible mechanism for linked drop downs.
3 proven steps to speed up Magento powered sites. The article focus is on optimizing time to first byte (TTFB), full page caching and configuring server for optimal performance.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

735 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