Jump to content

mail() not trusted


mikhl

Recommended Posts

Hi,

 

I am using a simple mail() function to send a confirmation email to users. However, when they receive the email (i am currently testing this with my hotmail account) it states that it is not trusted.

 

Quoted from hotmail:

This message looks suspicious to our SmartScreen filters.

 

Does anyone have any ideas as to why this is happening, whether to do with my code or not.

 

This is the code that I am using at the moment:

$sendto = '[email protected]'; // using this email to test.. would be users email
	$subject = "Confirmation"; // Subject
	$message = "Hi $fname $sname ($uname), \n\n Thanks for joining us. \n To activate your account you first need to confirm your email address. To do this click the link below: \n\n";
	$message .= "http://thelink.com";
	$header = "From: [email protected]\r\n";

	//return $message;
	mail($sendto, $subject, $message, $header);

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/244398-mail-not-trusted/
Share on other sites

  • 11 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.