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="abcdt01est@gmail.com";
$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 <team@test.com>" . "\r\n";
$headers.="Return-Path:<my email id goes here>\r\n";
mail($email, $subject, $usermsg, $headers);
I have also tried with
mail("abcdt01est@gmail.com", "subject", "body of message", "From: team@test.com", "-f<my email id>");