Jump to content

php mail wtf


Rifts

Recommended Posts

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;

 

Link to comment
https://forums.phpfreaks.com/topic/220939-php-mail-wtf/
Share on other sites

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

Link to comment
https://forums.phpfreaks.com/topic/220939-php-mail-wtf/#findComment-1144048
Share on other sites

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.

Link to comment
https://forums.phpfreaks.com/topic/220939-php-mail-wtf/#findComment-1144055
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.