Re: Problem with comma in mail form

From: Date: Wed, 25 Dec 2002 19:47:09 +0000
Subject: Re: Problem with comma in mail form
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-129325@lists.php.net to get a copy of this message
On Wed, 25 Dec 2002, Ben Edwards wrote: > I have a fairly simple mail form which gets email, subject and message and > posts to itself. > It then use mail() function to send a email. > mail( $admin_email, $subject, $message, "From: $email" ); > Problem is the message gets truncated if there is a comma in the message > after the comma. I have forms that have identical functionality, but don't exhibit that erroneous behavior. I can't tell what you've done to the arguments to mail() before using them, but the only thing I do is run them through stripslashes() and trim(). i.e. - $message = trim( stripslashes( $_POST['message'] ) ); If that's what you do too ... weird! If not, give it a try and see what happens. g.luck & cheers! ~Chris

« previous php.general (#129325) next »