Help - Search - Members - Calendar
Full Version: Help with SENDMAIL please !!!
The Planet Forums > Control Panels > Plesk
iceman
I upgrade my plesk and have a problem with my Sendmail in PHP.

When i try use a script for send mails, in the apache log_error:

sh: /usr/local/psa/qmail/bin/sendmail/: Not a directory

And the script not send the e-mail.

How check if the sendmail are working?

In the php.ini have:
sendmail_path = /usr/local/psa/qmail/bin/sendmail -t -i

What is wrong in my server?
Please any help me icon_smile.gif
Ales
It seems to me like your script has a mistake in it's syntax. "Sendmail" (it's actually qmail on these servers) should be working...

Your script seems to look for:
/usr/local/psa/qmail/bin/sendmail/

but it should look for

/usr/local/psa/qmail/bin/sendmail

Hope it helps,
Ales
iceman
Hi, this is the code, where declare or add the option for sendmail? in another server not use, and recive, the e-mails, but here not result.



// Verify address

if(ereg("^(.+)@(.+).(.+)$",$to))

{

}else{

echo("Need valid e-mail. (to)
");

echo("<script>alert("click for back");history.go(-1)");

exit;

}

if(ereg("^(.+)@(.+).(.+)$",$email))

{

}else{

echo("Need valid e-mail address. (Email)
");

echo("<script>alert("Error:Click for back");history.go(-1)");

exit;

}



// Tags and Spaces

$destino =strip_tags(trim($to));

$subject ="Contact from WebSite";

$motivo ="Write: "+strip_tags(trim($nombre))+"n"+"E-Mail : "+strip_tags(trim($email))+"n"+"Messsage : "+strip_tags(trim($motivo));



$headers ="Mime-Version: 1.0rnContent-Type:text/plain charset="ISO-8859-1"rn";

$headers .="Content-Transfer-Encoding: 7bitrn";

$headers .="X-Priority: 3rn";

$headers .="X-PHP-Mail-Priority: Normalrn";

$headers .="X-Mime-OLE: Produced by MS MimeOLE v5.00.3000.100rn";

$headers .="X-Mailer: PHP Mail generated by:PHPMailer v1.0rn";

$headers .="From: $SERVER_NAME <$from>rn";

$headers .="Reply-to: $fromrn";



// DR

$motivo .="n";

$motivo .="n-------------------------------------n";

$motivo .="Mailern";

$motivo .="CRn";

$motivo .="==================================n";



// Mail Send

@$send=mail($destino,$subject,$motivo,$headers);



// Echo result

if($send==1){

echo("E-mail Enviado");

echo("

Message send....


Your message are send
");

echo("Cooming soon answer.
");

echo("Go to home
");

echo("HOME

");

echo("");

}else{

echo("FAILED Not sended");

echo("

Sorry ....


Have a problem
");

echo("to process the e-mail
try in a hours...
");

echo("
echo("");

}

exit();

?>

This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.