I am sending email using mail()
The problem is I am not getting an email to a specific email id if the recipient id does not exists, I have tried the following code.
$email="[email protected]";
$usermsg="some message here";
$subject = 'Your Account Registration Confirmation';
$headers = "MIME-Version: 1.0\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\n";
$headers .= "From: Our Team <[email protected]>" . "\r\n";
$headers.="Return-Path:<my email id goes here>\r\n";
mail($email, $subject, $usermsg, $headers);
I have also tried with
mail("[email protected]", "subject", "body of message", "From: [email protected]", "-f<my email id>");