Re: StripSlashes From Mail

From: Date: Wed, 28 Jun 2000 18:11:04 +0000
Subject: Re: StripSlashes From Mail
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3622@lists.php.net to get a copy of this message
I guess I am confused as to why the slashes need to be stripped after the mail is sent. I do this in several of my emailing scripts I run on our site. I compose the string then do something like this: $msg = "This is a \ test message."; $parsedMailBody = stripslashes($msg); mail($mailRecipient, $mailSubject, $parsedMailBody, $mailHeaders); If I am missing something that you are trying to do please let me know. -- Brett M. Delia Software Engineer / Web Developer SportsMVP.com - Active Arts, Inc. 6650 S.W. Redwood Lane, Suite 200 Portland OR 97224 503.684.5806 x775 mailto:brettd@sportsmvp.com http://www.sportsmvp.com - http://www.activearts.com Do what you can, with what you have, where you are. --Theodore Roosevelt I have simply tried to do what seemed best each day, as each day came. -- Abraham Lincoln ----- Original Message ----- From: Waldo L. Jaquith <waldo@munkandphyber.com> To: Brett M. Delia <brettd@sportsmvp.com> Sent: Wednesday, June 28, 2000 11:08 AM Subject: Re: [PHP] StripSlashes From Mail > Brett, > > Waldo L. Jaquith <waldo@munkandphyber.com> wrote: > >> I have a silly little problem. When sending mail, I want to strip the > >> slashes. But I don't see how that's possible. Example: > >> > >> $mail_body = "Message full of \"\"\"."; > >> mail("mail@example.com", > >> "mail subject", > >> "$mail_body"); > >> > >> So, when the mail arrives, I've got a message full of slashes. There is, > >> of course, no opportunity to strip those slashes. But I can hardly send > >> mail without stripping the slashes. > > > On 6/28/00 2:02 PM, Brett M. Delia wrote: > > Have you tried using the PHP function stripslashes(string)? > > There's just no place to strip the slashes. It goes like this: > > 1. Data stored in string. > 2. Data mailed. > 3. Mail received. > > The slashes have to be stripped after it's mailed, but before it is > received. But that's not possible, because the mail has left the server. > There's simply no occasion to use StripSlashes. > > Best, > Waldo > > Waldo L. Jaquith > < waldo@munkandphyber.com > > < 804/979.2980 > > // Munk & Phyber > // 110B Second Street NE > // Charlottesville, VA 22902 > >

« previous php.general (#3622) next »