Jump to content

mail() sent, but in junk hotmail mark


flyclassic

Recommended Posts

hi, i don't know why, i try to send email using mail() in php,

but i kept getting in to HOTMAIL junk mail and "You may not know this sender.Mark as safe|Mark as unsafe" msg..

 

can someone help?

what i used is

$header ="From: My Company Support Reply-To: My Company Support Return-Path: My Company Support Message-ID: <[email protected]> X-Mailer: PHP v5.1.6 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="492405653a5ce22d452e26cb326e6b6b";

 

$msg="--b94c57e11de9afec8b9b5c4c0fc511d3_htmlalt Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit ear sdsd, Thank registering with My Company! You are two steps away from logging in and accessing our assignment page or members area. To activate your membership, please click here: http://www.mycompany.com/activate.php?id=18&code=827ccb0eea8a706c4c34a16891f84e7b Once you activate your membership, you will be able to login with the following information: Username: [email protected] Password: 12345 If you have any problems regarding the activation of your account, please email to [email protected] Thanks! Best Regards My Company Email: [email protected] --b94c57e11de9afec8b9b5c4c0fc511d3_htmlalt Content-Type: text/html; charset=iso-8859-1 Content-Transfer-Encoding: 8bit Dear sdsd,

hank registering as a tutor with My Company!

 

 

You are two steps away from logging in and accessing our assignment page or members area.

 

To activate your membership, please click here:

http://www.mycompany.com/activate.php?id=18&code=827ccb0eea8a706c4c34a16891f84e7b

 

Once you activate your membership, you will be able to login with the following

information:

Username: [email protected]

Password: 12345

 

 

If you have any problems regarding the activation of your account, please email to [email protected]

Thanks!

 

Best Regards

 

My Company

Email: [email protected] --b94c57e11de9afec8b9b5c4c0fc511d3_htmlalt-- --b94c57e11de9afec8b9b5c4c0fc511d3--"

 

$mail_sent = mail($to, $subject, $msg, $headers);

 

 

Can somebody helped me to make it so that it is not junk at HOTMAIL ? and receive this msg "You may not know this sender.Mark as safe|Mark as unsafe" . I need to click "Mark as safe" in order to view it.. this is way troublesome for my clients... how ?

Link to comment
https://forums.phpfreaks.com/topic/92070-mail-sent-but-in-junk-hotmail-mark/
Share on other sites

<?php

/*$headers = "Return-Path:[email protected]\r\n";

$headers .= "From: Kristy <[email protected]>\r\n";

$headers .= "Content-Type: text/html;

charset=iso-8859-1;\r\n\r\n";

 

$mesg = "<html><body>hey! it works!

</body></html>";

*/

$headers  = 'MIME-Version: 1.0' . "\r\n";

$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";

 

// Additional headers

$headers .= 'To: Mary <[email protected]>, Kelly <[email protected]>' . "\r\n";

$headers .= 'From: Birthday Reminder <[email protected]>' . "\r\n";

$headers .= 'Cc: [email protected]' . "\r\n";

$headers .= 'Bcc: [email protected]' . "\r\n";

$message="<a href='http://www.jobspokhara.com.np'>Follow this link</a>";

// Mail it

 

$emailaddress="[email protected]";

if(mail($emailaddress, $subject, $message, $headers))

{

echo"Success";

}

else

echo"Unsuccess";

?>

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.