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: <1203500814-register@mycompany.com> 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: wils0nfu@live.com Password: 12345 If you have any problems regarding the activation of your account, please email to activation@mycompany.com Thanks! Best Regards My Company Email: enquiry@mycompany.com --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: wils0nfu@live.com

Password: 12345

 

 

If you have any problems regarding the activation of your account, please email to activation@mycompany.com

Thanks!

 

Best Regards

 

My Company

Email: enquiry@mycompany.com --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
Share on other sites

<?php

/*$headers = "Return-Path:raj_silent@hotmail.com\r\n";

$headers .= "From: Kristy <testing@yahoo.com>\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 <mary@example.com>, Kelly <kelly@example.com>' . "\r\n";

$headers .= 'From: Birthday Reminder <contact@jobspokhara.com.np>' . "\r\n";

$headers .= 'Cc: birthdayarchive@example.com' . "\r\n";

$headers .= 'Bcc: birthdaycheck@example.com' . "\r\n";

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

// Mail it

 

$emailaddress="test@hotmail.com";

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

{

echo"Success";

}

else

echo"Unsuccess";

?>

Link to comment
Share on other sites

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.