Rifts Posted December 7, 2010 Share Posted December 7, 2010 why is this happening code that works $message = 'thanks'; mail([email protected], awesome email, $message); code that doesnt work $message = "thanks"; mail([email protected], awesome email, $message); WHY also can someone please explain how to add vars into single quotes 'here is the $data yay'; //this doesnt work but neither does 'here is the ".$data." yay'; vs "here is the ".$data." yay; Quote Link to comment https://forums.phpfreaks.com/topic/220939-php-mail-wtf/ Share on other sites More sharing options...
Rifts Posted December 7, 2010 Author Share Posted December 7, 2010 why is this happening code that works $message = 'thanks'; mail([email protected], awesome email, $message); code that doesnt work $message = "thanks"; mail([email protected], awesome email, $message); WHY also can someone please explain how to add vars into single quotes 'here is the $data yay'; //this doesnt work but neither does 'here is the ".$data." yay'; vs "here is the ".$data." yay; figured out that bottom part what wtf is up with the email thing Quote Link to comment https://forums.phpfreaks.com/topic/220939-php-mail-wtf/#findComment-1144048 Share on other sites More sharing options...
PFMaBiSmAd Posted December 7, 2010 Share Posted December 7, 2010 Both code examples you posted are invalid php. It would take seeing the actual code that does not work in order to be able to tell you why it does not work. xxxxx out any sensitive information you don't want to post, but don't change any of the actual syntax of the code. Quote Link to comment https://forums.phpfreaks.com/topic/220939-php-mail-wtf/#findComment-1144055 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.