W
Wintermute
Guest
I am having trouble getting emails from a PHP form to work...
Running plesk 7.5.4 under Fedora Core 2 (under virtuozzo)
here is my php code....
permissions are 755
<?php
$to = "[email protected]";
$subject = "Free Consultation Form";
$message = "Free Consultation Form\n";
$message .= "Name: ".$_POST["first"]."\nCompany: ".$_POST["company"]."\n";
$message .= "Address: ".$_POST["street"]." ".$_POST["city"].", ".$_POST["state"]." ".$_POST["postal_code"]." ".$_POST["country"]."\n";
$message .= "E-Mail: ".$_POST["email"]."\n";
$message .= "Phone: ".$_POST["phone"]."\n";
//$message .= "Interest: ".$_POST["interest"]."\n";
$message .= "Attention: ".$_POST["attention"]."\n";
$message .= "Additional Information: ".$_POST["additional"]."\n";
$headers = "From: Admin\r\n";
mail($to, $subject, $message, $headers);
//CONFIRMATION
$to_confirmation = $_POST["email"];
$subject_confirmation = "Free Consultation Form Confirmation \n";
$message_confirmation = "Your Free Consultation form has been submitted. We will contact you within the next 48HR to schedule an In-Home Free Consultation.\r\n\n";
$message_confirmation .= $message;
$headers_confirmation = "From: admin";
mail($to_confirmation, $subject_confirmation, $message_confirmation, $headers_confirmation);
?>
<a href="javascript:top.window.close()">CLOSE</a>
---------------------------
my /usr/local/psa/var/log/maillog.processed
log shows..
Dec 19 23:13:32 vps105 qmail-queue: dwlib[17250]: mail: all addreses are uncheckable - need to skip scanning (by deny mode)
Dec 19 23:13:32 vps105 qmail-queue: dwlib[17250]: scan: the message(drweb.tmp.Gp1xPx) sent by [email protected] to [email protected] should be passed without checks, because contains uncheckable addresses
does "passed" mean it was sent or dropped ?
I am not receiving the e-mails genearated by the form.
I changed the 'sendmail_path' option in my php.ini file
from
sendmail_path = /usr/sbin/sendmail -t -i
to
sendmail_path = /var/qmail/bin/qmail-inject -t -i
and still nothing...
also add the -Rt0 option to my /etc/xinetd.d/smtp_psa file
server_args = -Rt0 /var/qmail/bin/relaylock ........
still no go...
I actually saw the email body in some log somwhere but now i forgot where it was..but in any case...its not sending...
Oh and YES i did restart httpd and xinetd and qmail services after all changes...
please help..
winter
Running plesk 7.5.4 under Fedora Core 2 (under virtuozzo)
here is my php code....
permissions are 755
<?php
$to = "[email protected]";
$subject = "Free Consultation Form";
$message = "Free Consultation Form\n";
$message .= "Name: ".$_POST["first"]."\nCompany: ".$_POST["company"]."\n";
$message .= "Address: ".$_POST["street"]." ".$_POST["city"].", ".$_POST["state"]." ".$_POST["postal_code"]." ".$_POST["country"]."\n";
$message .= "E-Mail: ".$_POST["email"]."\n";
$message .= "Phone: ".$_POST["phone"]."\n";
//$message .= "Interest: ".$_POST["interest"]."\n";
$message .= "Attention: ".$_POST["attention"]."\n";
$message .= "Additional Information: ".$_POST["additional"]."\n";
$headers = "From: Admin\r\n";
mail($to, $subject, $message, $headers);
//CONFIRMATION
$to_confirmation = $_POST["email"];
$subject_confirmation = "Free Consultation Form Confirmation \n";
$message_confirmation = "Your Free Consultation form has been submitted. We will contact you within the next 48HR to schedule an In-Home Free Consultation.\r\n\n";
$message_confirmation .= $message;
$headers_confirmation = "From: admin";
mail($to_confirmation, $subject_confirmation, $message_confirmation, $headers_confirmation);
?>
<a href="javascript:top.window.close()">CLOSE</a>
---------------------------
my /usr/local/psa/var/log/maillog.processed
log shows..
Dec 19 23:13:32 vps105 qmail-queue: dwlib[17250]: mail: all addreses are uncheckable - need to skip scanning (by deny mode)
Dec 19 23:13:32 vps105 qmail-queue: dwlib[17250]: scan: the message(drweb.tmp.Gp1xPx) sent by [email protected] to [email protected] should be passed without checks, because contains uncheckable addresses
does "passed" mean it was sent or dropped ?
I am not receiving the e-mails genearated by the form.
I changed the 'sendmail_path' option in my php.ini file
from
sendmail_path = /usr/sbin/sendmail -t -i
to
sendmail_path = /var/qmail/bin/qmail-inject -t -i
and still nothing...
also add the -Rt0 option to my /etc/xinetd.d/smtp_psa file
server_args = -Rt0 /var/qmail/bin/relaylock ........
still no go...
I actually saw the email body in some log somwhere but now i forgot where it was..but in any case...its not sending...
Oh and YES i did restart httpd and xinetd and qmail services after all changes...
please help..
winter