toephu Posted July 28, 2010 Share Posted July 28, 2010 i'm in an internal organization sending out reminder emails and reports using PHP.. i have all the right encoding and a internal "from" email address. There is one url included in the email however it is an internal intranet site. Outlook still shows the warning message "this may be a phising message and is potentially unsafe..etc" of course the user can click that and then add to safe list but I would like by default that the emails are safe that way the users don't mistake it for spam. i use this to mail (with some other stuff above) $headers .= 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n"; if (!mail($to,$subject,$message,$headers)) echo "notification email failed to send"; any ideas? do i need to talk to my Exchange administrators and get them to add the from email to their safe list and this won't show up as phishing? Quote Link to comment Share on other sites More sharing options...
peter_anderson Posted July 28, 2010 Share Posted July 28, 2010 Do your headers have "From" set? Is your internal site an IP address? Quote Link to comment Share on other sites More sharing options...
radar Posted July 28, 2010 Share Posted July 28, 2010 http://www.transio.com/content/how-pass-spam-filters-php-mail Quote Link to comment Share on other sites More sharing options...
toephu Posted July 28, 2010 Author Share Posted July 28, 2010 Do your headers have "From" set? Is your internal site an IP address? yea, from is set like this $headers = "From: Admin Blah <AdminBlah@company.com>\r\n"; and I had the admins create the email alias "AdminBlah" foward to my email. yes the site is an IP addy: http://172.168.0.1/blahsite anyway i will try the suggestions in the link above by radar Quote Link to comment Share on other sites More sharing options...
toephu Posted July 28, 2010 Author Share Posted July 28, 2010 http://www.transio.com/content/how-pass-spam-filters-php-mail i added those: $header .= "Reply-To: Some One <someone@mydomain.com>\r\n"; $header .= "Return-Path: Some One <someone@mydomain.com>\r\n"; $header .= "From: Some One <mydomain@myhost.com>\r\n"; unfortunately it did not work.. outlook still flags it as phishing... oh well at least it doesn't put in the junk email folder. 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.