crazylegseddie Posted August 16, 2006 Share Posted August 16, 2006 Hi i have created a simple contact form thats works fine using my smtp set up in my php.ini file. I now need to put my work on a live server and have downloaded and setup phpmailer. My form currently works using the following code:[code]<?php //create short variable names $firstname=$_POST['firstname']; $lastname=$_POST['lastname']; $email=$_POST['email']; $feedback=$_POST['feedback']; $toaddress = '[email protected]'; $subject = 'Contact'; $mailcontent = 'Customer First Name: '.$firstname. "\n" .'Customer Last Name: '.$lastname. "\n" .'Customer Email: '.$email. "\n" ."Customer Comments: \n".$feedback. "\n"; $fromaddress = 'From: [email protected]'; mail($toaddress, $subject, $mailcontent, $fromaddress);?>[/code]How can i integrate this into phpmailer? Ive looked at the tutorial using the site but still having problems. Any help will be cool :)THX Link to comment https://forums.phpfreaks.com/topic/17769-php-mailer-with-a-form/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.