[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1416
  • Last Modified:

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

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
Nick--H
Asked:
Nick--H
1 Solution
 
nplibCommented:
http://phpmailer.codeworxtech.com/

no install, just place files in document root of website
0
 
Nick--HAuthor Commented:
Perfect - thanks!
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now