ukweb Posted March 5, 2010 Share Posted March 5, 2010 Hi folks I'm making a mailing system for a client, and when a ' is entered into, say the subject line, it appears as \' when the email arrives. I know it does that so that a string isn't terminated prematurely but is there a way of doing some trickery to make it appear as ' and not \' ? Thanks in advance Ste Quote Link to comment https://forums.phpfreaks.com/topic/194243-making-a-mailing-system-problem-with/ Share on other sites More sharing options...
Wolphie Posted March 5, 2010 Share Posted March 5, 2010 Use stripslashes() before inserting the text into the e-mail body/subject field. http://php.net/manual/en/function.stripslashes.php Quote Link to comment https://forums.phpfreaks.com/topic/194243-making-a-mailing-system-problem-with/#findComment-1021908 Share on other sites More sharing options...
ukweb Posted March 5, 2010 Author Share Posted March 5, 2010 Use stripslashes() before inserting the text into the e-mail body/subject field. http://php.net/manual/en/function.stripslashes.php Ahh of course!! Ta bud!!! Quote Link to comment https://forums.phpfreaks.com/topic/194243-making-a-mailing-system-problem-with/#findComment-1021916 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.