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";
}
Share
Post a Comment
for "Sending Html Mail Not Working"
Post a Comment for "Sending Html Mail Not Working"