Re: Newbie question about sending email

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Ooops!

processor.php is now:


<?php

$where_form_is = "http://".$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF'])."/";

$to = "4sam-nj-subscribe@xxxxxxxxxxxxxxx,pjh42@xxxxxxxxx";
$subject = "SUBSCRIBE";
//    $from = $_POST['field_4'];  <<<== this was the culprit
$body = "Form data:

Name: ".$_POST['field_1']."
Street Address: ".$_POST['field_2']."
Phone Number: ".$_POST['field_3']."
Email Address: ".$_POST['field_4']."

powered by phpFormGenerator, but fixed by PHP-General!";

$headers  = "From: \"".$_POST['field_1']."\" <".$_POST['field_4'].">\r\n";
$headers .= "X-Mailer: PHP/".phpversion()."\r\n";

mail($to, $from, $subject, $body);

include("confirm.html");
?>

AND IT WORKS!!

1E6 thank yous!!

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux