I am using the mail() function to send out mail from my website; I’ve noticed that the message is from firstname.lastname@example.org instead of mydomain.com. Is there a way to change this?
Yes - set the “From:” header when calling the mail() function.
mail("email@example.com", “Subject”, “message”, “From: firstname.lastname@example.org”);
Ahh okay. I passed a string for my FROM parameter so that was why it didn’t work. Thanks a lot for your help!