Sorry for the noob question, but I’m a complete php noob and I cannot find the answer anywhere.
My question is simply what is the proper syntax to use for passing a variable through the 5th parameter of the mail() function.
This is what I have:
[php]if(mail($cellemail, $subject, $message, $from, "[email protected]"))[/php]
I want to use a variable for the 5th parameter like this:
[php]if(mail($cellemail, $subject, $message, $from, “-f$from”))[/php]
I know it’s not correct but I’m not sure what the proper syntax is to use the -f flag with the $from variable.
Any help is greatly appreciated! thx