?
Solved

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

Posted on 2008-06-11
2
Medium Priority
?
1,412 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 17

Accepted Solution

by:
nplib earned 2000 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

[Webinar] How Hackers Steal Your Credentials

Do You Know How Hackers Steal Your Credentials? Join us and Skyport Systems to learn how hackers steal your credentials and why Active Directory must be secure to stop them.

Question has a verified solution.

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

These days socially coordinated efforts have turned into a critical requirement for enterprises.
This article discusses four methods for overlaying images in a container on a web page
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

764 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