[2 days left] What’s wrong with your cloud strategy? Learn why multicloud solutions matter with Nimble Storage.Register Now

x
?
Solved

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

Posted on 2008-06-11
2
Medium Priority
?
1,414 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

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.
There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to dynamically set the form action using jQuery.
Suggested Courses

649 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