Jump to content

Email, PHP and Variables eeik!!


flashx

Recommended Posts

Hi guys,

 

this is my first post, and im needing some help with email and variables in php.

 

when i save this out it works:


<?php

$test = "hi there";
mail('[email protected]','test subject', 'This is a test');
?>


 

but as soon as i add variable into the mix it doesnt work...

 

 


<?php

$email = "[email protected]";

mail($email,'test subject', 'This is a test');
?>


 

 

any clues?

Link to comment
https://forums.phpfreaks.com/topic/217929-email-php-and-variables-eeik/
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.