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 = 'my_eamil@live.co.uk'; // 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: auto-confirm@email.co.uk\r\n";

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

 

Thanks

Link to comment
Share on other sites

  • 11 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.