Frequently Asked Questions

Apostrophe in emails?

Whenever I use an apostrophe (’) in the Email All Members function, it puts a slash (\) in front of it! How can I make it stop doing that?

PHP puts the slash in to escape the character, to make sure it doesn’t get parsed as actual PHP coding instead of just as the body of the email. The easiest way to stop it from doing that, is by simply not using contractions. Write “I am” instead of “I’m”. :)

There is a way to fix this though, but it involves editing your admin.php file. Find the line that looks like this:

mail($recipient, $subject, "$_POST[body]", "$mailheaders");

It should be around line 262. Then change it to this:

mail($recipient, stripslashes($subject), stripslashes($_POST[body]), "$mailheaders");

That should fix the problem!