Skip to content Skip to sidebar Skip to footer

Sending HTML Mail Not Working

I am sending a very simple HTML message using PHP mail(). The purpose was to send a link that contained the user's email address and a verification code. When the user clicked th

Solution 1:

The only thing that seems to stop you from sending an email is:

$email = str_replace("@","%40",$email);

Because you are sending it to example%40hostname.com

Also to check if email is sent use:

if(@mail($to, $subject, $message, $headers))
{
  echo "Mail Sent Successfully";
}else{
  echo "Mail Not Sent";
}

Post a Comment for "Sending HTML Mail Not Working"