Jump to content


Photo

MAIL feature


  • Please log in to reply
5 replies to this topic

#1 baber_abbasi

baber_abbasi
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts
  • LocationPakistan

Posted 17 July 2006 - 02:48 PM

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.
Baber N Abbasi

#2 Kurt

Kurt
  • Members
  • PipPipPip
  • Advanced Member
  • 42 posts
  • LocationNew York

Posted 17 July 2006 - 02:54 PM

I would do something like this:

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



#3 baber_abbasi

baber_abbasi
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts
  • LocationPakistan

Posted 17 July 2006 - 03:02 PM

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.


Baber N Abbasi

#4 wildteen88

wildteen88
  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 17 July 2006 - 03:05 PM

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.

#5 baber_abbasi

baber_abbasi
  • Members
  • PipPipPip
  • Advanced Member
  • 33 posts
  • LocationPakistan

Posted 17 July 2006 - 03:33 PM

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??
Baber N Abbasi

#6 redarrow

redarrow
  • Members
  • PipPipPip
  • Advanced Member
  • 7,308 posts
  • Locationlondon

Posted 17 July 2006 - 03:38 PM

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.




Wish i new all about php DAM i will have to learn
((EMAIL CODE THAT WORKS))
http://simpleforum.ath.cx/mail2.inc
((PAYPAL INTEGRATION THAT WORKS))
http://simpleforum.a...aypal1_info.inc




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users