Whenever i send an email in php with the mail()
function, when i receive it as a user, the e-mail is shown as sent from "anonymous@MyServerName.local".
Now i want that to be sent from "mail-bot@mydomain.com" as a standard, without having to set the "From:" header in the mail()
function when i send it.
I am not sure how to change this, so a little help would be nice.
I run CentOS 5.6 with a somewhat normal LAMP setup.