Re[2]: [PHP] Parse Error in my Mail Function -UPDATED

From: Date: Fri, 07 Jun 2002 17:56:49 +0000
Subject: Re[2]: [PHP] Parse Error in my Mail Function -UPDATED
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-101154@lists.php.net to get a copy of this message
On Friday, June 7, 2002 at 7:08:00 PM, you wrote: > Lines 29, 30, and 31 > //29 > $headers = $from . "\r\n" . $bcc . "\r\n" > //30 - The Next Line is where I'm getting the parse Error at: > mail ($to, $setting_site_name, $mailpost, $headers) or $emailsuccess > ="Failure sending email."; > //31 > if ($emailsuccess == "") {$emailsuccess = "Email Sent Successfully.";} Line 29 is missing a semicolon at the end. It would have been much simpler if you had just posted these 3 lines in the first place. -- Stuart

« previous php.general (#101154) next »