Knowledgebase
$notifyemail help
Posted by Chimpie, 01-14-2013, 05:29 PM | Hey everyone.
I'm trying to set up a notifier for when a script runs via a cron job that it sends me an email. My website currently uses cPanel which I know has its own built in notifier, but I'm trying to create a customized response.
Anyway, the partial script I'm using is:
The script this is embedded in runs fine, and it sends the email perfectly, but the From address is the address of the server, which uses the cPanel accounts username. To be this is not very smart.
Is there a way I can customize the above script to change the From address to something else?
Thanks!
|
Posted by yourwebhostereu, 01-14-2013, 05:39 PM | PHP.net has a very extensive documentation. See http://php.net/manual/en/function.mail.php for more information about the mail function. See example 2 to set the from e-mail address.
|
Posted by Chimpie, 01-14-2013, 08:23 PM | Thanks for the link. It was very helpful.
|
|
Add to Favourites
Print this Article |
Also Read