A
Anonymous
Guest
Hi shg2001,
i modified your code and send you back, use this. Most of the servers are not supporting the header to rename the from address. So, i simply disabled that line. I tested in my server not in local host. Code as below,
Try it and send me feedback.
i modified your code and send you back, use this. Most of the servers are not supporting the header to rename the from address. So, i simply disabled that line. I tested in my server not in local host. Code as below,
Code:
<?php
if ((!isset($process_errors)) && ($action == "process")) {
$to = 'dsporn@ibenefitsdirect.com' . ', '; // note the comma
$to .= 'vijana2004@yahoo.co.in';
$subject = 'New submission data';
$headers = 'MIME-Version: 1.0' . "\r\n";
$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
//$headers .= 'from:ibenefitsdirect.com<forms@ibenefitsdirect.com>' . "\r\n";
$message = "
A customer send at inquiry today at: $timestamp
The inquiry came from IP address: $ip_addr
The inquiry was direct to: $subject
The inquiry contain the following information:
Required Fields
Email Address: $email_addr
First Name: $fname
Last Name: $lname
Home Phone: $home_phone
Work Phone: $work_phone
Cell Phone: $cell_phone
Primary Contact: $pri_contact
Best Time to Call: $call_time
Address==>
Address 1: $addr1
Address 2: $addr2
City: $city
State: $state
Zip/Postal Code: $zip
Has Insurance: $has_insurance";
mail($to, $subject, $message, $headers);
}
?>
Try it and send me feedback.