Re: [PHP-DB] Mail() Not working
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, Test, $mesg, $from)) echo Mail Sent!; else echo Mail could not be sent...; ? I have the same problem! Snip... Do you have this problem on a OSX Server right? OS X.1, I can't imagine there's much difference. Kevin -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DB] Mail() Not working
On Wednesday, December 12, 2001, at 06:12 AM, Rick Emery wrote: The mail() function works fine. $email must be set to you email program, NOT an email server. Should be something like /bin/sendmail. If you don't have access to this function, 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: Tuesday, December 11, 2001 10:18 PM To: PHP List Subject: [PHP-DB] Mail() Not working 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: ? $email = to_email; $from = from_email; $mesg = This is a test email. \r\n; if (mail($email, Test, $mesg, $from)) echo Mail Sent!; else echo Mail could not be sent...; ? Every time I run this script, I receive Mail could not be sent... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DB] Mail() Not working
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); -Original Message- From: Kevin J. Maynard [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 12, 2001 10:33 AM To: PHP List; Rick Emery Subject: Re: [PHP-DB] Mail() Not working On Wednesday, December 12, 2001, at 06:12 AM, Rick Emery wrote: The mail() function works fine. $email must be set to you email program, NOT an email server. Should be something like /bin/sendmail. If you don't have access to this function, 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: Tuesday, December 11, 2001 10:18 PM To: PHP List Subject: [PHP-DB] Mail() Not working 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: ? $email = to_email; $from = from_email; $mesg = This is a test email. \r\n; if (mail($email, Test, $mesg, $from)) echo Mail Sent!; else echo Mail could not be sent...; ? Every time I run this script, I receive Mail could not be sent... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]