Fog Juice Posted January 4, 2009 Share Posted January 4, 2009 Hello, I have created an email validation script that sends out a validation code to users emails before their account is activated. I'm using the php mail() function to do this but it seems like yahoo is just flat out blocking any emails sent from my domain and other email hosts such as gmail put it into junkmail. $date_arr = getdate(); $date = "$date_arr[mday].$date_arr[mon].$date_arr[year]"; $sendto = $email; $subject = "Account Activation from Virtual Sims!"; $body = "html body text here, removed to save space."; $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: [email protected]' . "\r\n" . 'Reply-To: [email protected]' . "\r\n" . 'X-Mailer: PHP/' . phpversion(); $mail_status = mail($sendto, $subject, $body, $headers); Is there a way to allow emails from my domain to go to peoples inbox without them having to setup custom mail rules? It's a pain to ask users to setup mail rules when I now have dozens of people signing up daily. Thanks, Chris Link to comment https://forums.phpfreaks.com/topic/139390-sending-emails-with-php-so-they-dont-end-up-filtered-out-or-in-junk-mail/ Share on other sites More sharing options...
bubbasheeko Posted January 4, 2009 Share Posted January 4, 2009 I use this quite frequently and haven't experienced a problem with emails going to the junk mail. However, another way you could do it is by routing it through the SMTP server. That may help. Check this out: http://email.about.com/od/emailprogrammingtips/qt/et073006.htm Link to comment https://forums.phpfreaks.com/topic/139390-sending-emails-with-php-so-they-dont-end-up-filtered-out-or-in-junk-mail/#findComment-729114 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.