The following code works as a test page from outside zen-cart. However when attempting to send a message from the "contact us" I get a message that the mail was sent but unfortunatly nothing is sent.
Does anyone have any ideas as to why? I have tried adding the ini_set statements to the function_mail.php with no success.
I am not oposed to creating my own "contact us" page and substituting it for the default one. Just need to know how to link it.
Apache 2
PHP 5
Zen-cart 1.3.6
ini_set('SMTP','mailhost.me.net');
ini_set('sendmail_from','[email protected]');
$mail_to="information AT mydomain DOT com";
$mail_from="me AT you DOT com";
$mail_subject="test";
$mail_body="test";
if(mail($mail_to,$mail_subject,$mail_body,$mail_from))
echo "Thank You, the following message($message $mail_from) has been sent to: $mail_to<br> ";
else "Sorry but there has been an error in sending your message.";



