Re: Something with php server changed?
| From: | Rolf Brusletto | Date: | Wed, 23 Apr 2003 21:33:33 +0000 |
| Subject: | Re: Something with php server changed? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145078@lists.php.net to get a copy of this message | ||
*This message was transferred with a trial version of CommuniGate(tm) Pro*
Its possible they have a custom mail configuration and have not set that part back up yet(or do not realize they need to).
default in the php.ini is to use /usr/bin/sendmail -t -i
if this is not how they're mail is setup... then mail() won't work.
Rolf Brusletto
www.phpexamples.net
sempitek wrote:
All my mail() scripts are now broken. Server/host said they upgraded to PHP 4.3.1 I grabed an example from the WROX PHP4 book to test: <?php //first_mail.php $mail_to ="x@x.com"; $mail_subject = "Hi there!"; $mail_body = "We'll have a meeting next Wednesday.\n"; $mail_body .= "7 P.M. in Judy's Office.\n"; $mail_body .= "Oh, BYOB!\n"; // if(mail($mail_to, $mail_subject, $mail_body))echo "Successfully sent the e-mail \"$mail_subject\" to $mail_to.";else echo "Failed to send the e-mail \"$mail_subject\"." ?> As you guessed, this gives me the failed message. Anyone else out there experiencing this? What needs to be changed in the above script? Thanks all! -Jon