[PHP-DB] Mail() Not working

2001-12-11 Thread Kevin J . Maynard
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

Re: [PHP-DB] Mail() Not working

2001-12-12 Thread Kevin J . Maynard
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

Re: [PHP-DB] Mail() Not working

2001-12-12 Thread Kevin J . Maynard
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:

[PHP-DB] RE: Mail() Not working

2001-12-12 Thread Kevin J. Maynard
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