baber_abbasi Posted July 17, 2006 Share Posted July 17, 2006 Hello,I am using a simple php mail function to send emails from database. I need PHP to chk and keep a log of bounced emails. Can anyone help.Thanks in advance. Quote Link to comment https://forums.phpfreaks.com/topic/14855-mail-feature/ Share on other sites More sharing options...
Kurt Posted July 17, 2006 Share Posted July 17, 2006 I would do something like this:$mail=mail(blahblahblah);if(!$mail){//insert into a database that it was bounced} Quote Link to comment https://forums.phpfreaks.com/topic/14855-mail-feature/#findComment-59425 Share on other sites More sharing options...
baber_abbasi Posted July 17, 2006 Author Share Posted July 17, 2006 It didn't work. I just tested sending an email to fake email address via Outlook express and it was bounced immediately. Then I used same email address in my php script but it didn't give me a message if it was bounced. Quote Link to comment https://forums.phpfreaks.com/topic/14855-mail-feature/#findComment-59431 Share on other sites More sharing options...
wildteen88 Posted July 17, 2006 Share Posted July 17, 2006 I believe this is not possible with mail, as it doesnt test whether the emails sent have been bounced. mail only checks whether the header information is corrrect and that the SMTP server settings are correct anythink past that will not be checked. Quote Link to comment https://forums.phpfreaks.com/topic/14855-mail-feature/#findComment-59434 Share on other sites More sharing options...
baber_abbasi Posted July 17, 2006 Author Share Posted July 17, 2006 This is what I was wondering but there are quiet few websites using PHP and having these features. They even track if email is opened or not, receipient IP address and much more. Plz chk out http://www.didtheyreadit.com . I was wondering PHP can do this with sockets or something else. Does anyone have a word to say?? Quote Link to comment https://forums.phpfreaks.com/topic/14855-mail-feature/#findComment-59455 Share on other sites More sharing options...
redarrow Posted July 17, 2006 Share Posted July 17, 2006 I had a problam for this on my website and i solved it in a funny manner, the only way i could solve it was when there was a bad email address my webserver would create an errow telling me that a email address is incorrect with the header information.but this was only becouse i installed a email server.I went to the link and also worked out the same thing as i am doing.basickly if the email is not a email address as valid then the email server will get a warning report.The link service you provided is setting the email sever to send a copy of the warning email report to the admin's email address as a bounced email ok. Quote Link to comment https://forums.phpfreaks.com/topic/14855-mail-feature/#findComment-59458 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.