I have been unable to get the mail() function to work.
my php.ini file has the following line in it:
SMTP = mail.attbi.com
my php script is as follows:
Every time I run this script, I receive "Mail could not be sent..."
Any thoughts?
--
PHP Database Mailing List (http://www.php.net/)
To un
On Wednesday, December 12, 2001, at 01:14 AM, Cristian Pozzer wrote:
>> my php.ini file has the following line in it:
>> SMTP = mail.attbi.com
>>
>> my php script is as follows:
>> > $email = "to_email";
>> $from = "from_email";
>> $mesg = "This is a test email. \r\n";
>>
>> if (mail($email, "Te
tion, then you cannot send mail.
So where would the To: address go if not $email? I thought the proper
syntax was: mail(Email_Address_of_Recipient, Title_of_Email,
Body_of_Email, Headers);
Kevin
> -----Original Message-
> From: Kevin J. Maynard [mailto:[EMAIL PROTECTED]]
> Sent:
It should look like:
$email = "/bin/sendmail";
$to = "[EMAIL PROTECTED]";
$subj = "A test message";
$body = "This is the body of the message";
$hdr = "Reply-to: [EMAIL PROTECTED]";
mail ($email, $to, $subj, $body, $hdr);
--
Still no dice. I ran a search on my HD and found that my sendmai