lifelineamerica
Programmer
I migrated from a shared server that ran PHP 4 to a new one running PHP5.
I'm having trouble sending email as in this simple example:
Some parameters in my PHP ini file are as follows:
sendmail_from: sales@getpromo.com
SMTP: localhost
smtp_port: 25
...and PEAR does not appear to be enabled by the way, as I see '--without-pear' in the Configure Command section when I run the php_info() function
So what could be the problem?
I'm having trouble sending email as in this simple example:
Code:
<?
$tocust ="me@yoursite.com";
$mail_contents="This is a test email";
$subjectcust ="Hello Again!";
$mailheaderscust ="From:Mysite.com <info@mysite.com>\n";
$mailheaderscust .="Reply-To:info@mysite.com\n";
$mailheaderscust .= "MIME-Version: 1.0\n";
mail($tocust, $subjectcust, $mail_contents, $mailheaderscust);
echo "finished!";
?>
Some parameters in my PHP ini file are as follows:
sendmail_from: sales@getpromo.com
SMTP: localhost
smtp_port: 25
...and PEAR does not appear to be enabled by the way, as I see '--without-pear' in the Configure Command section when I run the php_info() function
So what could be the problem?