Jump to content

Mail sent to junk folder


mmarif4u

Recommended Posts

Hello,

 

I have page on my site there a user enter thier username And email.and submit the form,

After submitting an email is sent to the user,

But the problem is that last week i try that page it sent msg to the inbox but today i check

it it sent mail to the junk/spam forlder.Gmail ok but yahoo and hotmail(the email is sent to junk).

 

I dont know why.

This is code:

 

   $headers = 'From: [email protected]' . "\r\n" .
   'Reply-To: [email protected]' . "\r\n" .
   'X-Mailer: PHP/' . phpversion();
    $message = "Good Day!

Your personal account for the Straight-a program
has been created! Your personal username and 
password are as follows:

    username: " . $cleaned_for_sql['uid'] . "
    password: " . $password . "
    
    
To log in, proceed to the following address:  
   
       http://www.domain.com.my

You aren't stuck with this password! Your can
change it at any time after you have logged in.

If you have any problems, feel free to contact us at
<[email protected]>.


Webmaster
";

    mail($cleaned_for_sql['email'],"Your Password for the Straight-a Program", 
         $message, $headers);

Link to comment
https://forums.phpfreaks.com/topic/40492-mail-sent-to-junk-folder/
Share on other sites

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.