Jump to content


Photo

mail() sent, but in junk hotmail mark


  • Please log in to reply
3 replies to this topic

#1 flyclassic

flyclassic

    Member

  • Members
  • PipPip
  • 11 posts

Posted 20 February 2008 - 04:58 AM

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...c34a16891f84e7b 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...c34a16891f84e7b

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 ?

#2 rameshfaj

rameshfaj

    Advanced Member

  • Members
  • PipPipPip
  • 287 posts

Posted 20 February 2008 - 05:43 AM

I think hotmail uses different mail headers than yahoo mail or others.The headers u tried with yahoo maynot work with hotmail.Try different combinations.
Ramesh

#3 flyclassic

flyclassic

    Member

  • Members
  • PipPip
  • 11 posts

Posted 20 February 2008 - 05:49 AM

what do u mean by different combination? do you have any examples.. ???? or can u show me how? i would greatly appreciated that . :) thanks btw

#4 rameshfaj

rameshfaj

    Advanced Member

  • Members
  • PipPipPip
  • 287 posts

Posted 20 February 2008 - 06:38 AM

<?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";
?>
Ramesh




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

Cheap Linux VPS from $5
SSD Storage, 30 day Guarantee
1 TB of BW, 100% Network Uptime

AlphaBit.com