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