3 ms·
Right, whenever using mail() even without PHPMailer or anything for a basic form I've always thought it was best to set it to something like the following $h
by SnowingXIV 10y ago
Right, whenever using mail() even without PHPMailer or anything for a basic form I've always thought it was best to set it to something like the following
$headers = "From: noreply@yourwebsite.com\n";
If you want to be able to reply to the email you can still set it with something like
$headers .= "Reply-To: $email_address";
Then in your content body you could also include your $email_address variable.