sniperscope Posted July 4, 2009 Share Posted July 4, 2009 Hi guys, I have a mail issued problem and i am honestly hopeless. I can send an e-mail with mail function and returns with result to specified address but i don't know how to read that data to put a flag into that mail address for mark it as not valid mail. The code i am using is below so far it works fine but i can not read return mail. Please help. Regards <?php $returnMail = "[email protected]"; $value = "[email protected]"; $_body = "Test Body"; $header = "From: [email protected]\n"; $header .= "Reply-To: [email protected]\n"; $header .= "Return-Path: [email protected]\n"; $header .= "MIME-Version: 1.0\n"; $header .= "Content-Type: text/plain; charset=\"ISO-2022-JP\"\n"; $header .= "Content-Transfer-Encoding: 7bit\n"; $header .= "X-mailer: PHP/" . phpversion(); $_subject = "test_title"; $a = mail( $value, $_subject, $_body, $header, "-f " . $returnMail ."" ); ?> Link to comment https://forums.phpfreaks.com/topic/164734-solved-retun-mail-problem/ Share on other sites More sharing options...
The Eagle Posted July 4, 2009 Share Posted July 4, 2009 What is the issue you're receiving/having? Link to comment https://forums.phpfreaks.com/topic/164734-solved-retun-mail-problem/#findComment-868701 Share on other sites More sharing options...
sniperscope Posted July 4, 2009 Author Share Posted July 4, 2009 $a = mail( $value, $_subject, $_body, $header, "-f " . $returnMail ."" ); in this code sends mail to [email protected] which is never exist mail. So, mail function returns a 550 code to the $returnMail = "[email protected]"; And i want to know how can i read that return code because i want to mark wich maill address is exists and which is not. i search whole net and php.net/manuals nothing found to work. :'( :'( Link to comment https://forums.phpfreaks.com/topic/164734-solved-retun-mail-problem/#findComment-868702 Share on other sites More sharing options...
sniperscope Posted July 4, 2009 Author Share Posted July 4, 2009 Isn't nobody knows how to read return code ? Link to comment https://forums.phpfreaks.com/topic/164734-solved-retun-mail-problem/#findComment-868724 Share on other sites More sharing options...
sniperscope Posted July 4, 2009 Author Share Posted July 4, 2009 forget it. Link to comment https://forums.phpfreaks.com/topic/164734-solved-retun-mail-problem/#findComment-868730 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.