Answer the question
In order to leave comments, you need to log in
Mail goes to spam, how to change it?
Added the usual function to send a letter:
$to= "Mary <web-ifx[email protected]>";
$subject = "Birthday Reminders for August";
$message = 'TEST';
$headers= "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "From: Birthday Reminder <[email protected]>\r\n";
mail($to, $subject, $message, $headers);
Answer the question
In order to leave comments, you need to log in
First, try adding the correct 'Return-Path' header (which is just the return address), perhaps duplicating the return address itself through the -f additional parameter (that is, something like mail($to, $subject, $message, $headers , '[email protected]');) and see what happens.
Well, if you specify content-type text/html, it would be more correct to format the message in html (with html, head and body tags)
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question