Track php emails with php script? -
i sending email newsletters using php mail() function.
have track newsletter emails status.
the status be
1. num.of sent.
2. num.of delivered.
3. delivered date.
4. total num.of read.
5. unique num.of read.
6. read date.
7. num.of bounced.
8. total num.of users clicked links in email.
9. unique num.of users clicked links in email.
from above status track following:
1. sent. // tracked sent coding.
8. total num.of clicked links in email. // tracked adding additional parameters in url.
9. unique num.of clicked links in email. // tracked adding additional parameters in url.
how track other status of emails sent mail() function?
i have send , track emails same server.
you can't directly track other status mail() function. technically sent tells mail passed on server's outbound mail queue - can't tell if left server.
1,. need check mail server logs see when email left server.
2,3. num of delivered , delivered date - again need check mail server logs see when mail handed on (successfully) third party mail server. depend on definition of delivered (into end-users mailbox? email client?) how reliable these stats be.
4,5,6. total number read, unique number read, read date. can't accurately track this. if sent html email embed image email whereby source of image webserver. if each image url had unique identifier person sent email track server logs (or via php if url php script returned image). relies on end user allowing loading of images external webservers (outlook , gmail example have turned off default).
7,. if sent address script on server parse bounce message , determine how many bounced. alternatively can have address mailbox go , check manually.
8, 9. each link in email need link url on webserver. url script track clicked (by use of query variable) , want see (another query variable) , redirect them (header function in php) want them end up.
Comments
Post a Comment