Jump to content

Archived

This topic is now archived and is closed to further replies.

baber_abbasi

MAIL feature

Recommended Posts

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.

Share this post


Link to post
Share on other sites
I would do something like this:

$mail=mail(blahblahblah);
if(!$mail){
//insert into a database that it was bounced
}

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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.

Share this post


Link to post
Share on other sites
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??

Share this post


Link to post
Share on other sites
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.



Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.