Removing ' from mail

the mail() function

Moderators: macek, egami, gesf

New php-forum User
New php-forum User
Posts: 19
Joined: Fri Dec 19, 2003 10:51 am

Removing ' from mail

Postby sanderdolphin » Sun Jun 06, 2004 11:51 am

Apologies for the incorrect terminology throughout this post.

I've set up my mail which is working in every way I want it to - except that it places a / before (what I assume are reserved) characters such as " and '

Is there a way I can get this to email without those in it? I'm using $content = strip_tags($content); to ensure there are no tags but can't work out how to prevent the / in the emails.

Any advice appreciated.


User avatar
Posts: 830
Joined: Tue Jan 21, 2003 10:42 pm
Location: Michigan USA

Postby Redcircle » Sun Jun 06, 2004 2:47 pm

you could use str_replace('/','',$content)

but / should not effect messages \ will thought.. you can use stripslashes() for that.

Return to “PHP coding => Mail”

Who is online

Users browsing this forum: Google [Bot] and 2 guests