View Full Version : php mail tracking
kmm2908
05-10-2009, 12:40 AM
I send out emails via our smtp server from a php script. Is there anyway I can track the emails that were sent out?
If they were sent manually I could look at the sent folder, anybody know anyway to do this with emails sent via php script?
Thanks in advance for any suggestions.
Robert Taylor
05-10-2009, 07:12 PM
After mail(...);
INSERT an entry into a "log" TABLE that you CREATE to hold whatever fields you want.
kmm2908
05-11-2009, 01:41 AM
Yes that makes sense Robert. Thank you!
djmatt
05-11-2009, 06:26 AM
You can also repeat the mail() code with you being the recipient. I use that to alert myself immediately when someone signs a guestbook or writes a blog or registers.
felgall
05-11-2009, 01:20 PM
You can also repeat the mail() code with you being the recipient. I use that to alert myself immediately when someone signs a guestbook or writes a blog or registers.
Doing that means that you are sending twice as many emails which effectively halves the number you can send. Logging them in a database provides the same information without using up half your email limit.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.