Jump to content

php mail wtf


Rifts

Recommended Posts

why is this happening

 

code that works

$message = 'thanks';

mail(me@aol.com, awesome email, $message);

 

 

code that doesnt work

$message = "thanks";

mail(me@aol.com, 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
Share on other sites

why is this happening

 

code that works

$message = 'thanks';

mail(me@aol.com, awesome email, $message);

 

 

code that doesnt work

$message = "thanks";

mail(me@aol.com, 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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.