flyclassic Posted February 20, 2008 Share Posted February 20, 2008 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 ? Quote Link to comment Share on other sites More sharing options...
rameshfaj Posted February 20, 2008 Share Posted February 20, 2008 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. Quote Link to comment Share on other sites More sharing options...
flyclassic Posted February 20, 2008 Author Share Posted February 20, 2008 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 Quote Link to comment Share on other sites More sharing options...
rameshfaj Posted February 20, 2008 Share Posted February 20, 2008 <?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"; ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.