1. Admin clicks on Send
2. The newsletter is assembled from multiple (user definable) template files (header, body, footer, etc) and then written to a .txt file for caching
3. All of the subscribers are inserted into a queue table in mysql
4. The newsletter is then sent out in batches using the cached .txt file
Now, this certainly worked well because the newsletter was assembled once before sending, so the only things that changed with Swift was the recipient's email address. It would read in the .txt file and cache it as well.
The problem now seems to be implementing the hack. I need to put the following into each email, with the newsletter's id and the subscriber's id.
Code: Select all
<img src="http://www.mysite.com/ssi/return_receipt.php?nid=".$_GET['news_id']."&sid=".$_GET['sub_id']."" /> Am I better off rewriting my scripts and functions? Or is there an easy way to do this?
If I have to rewrite, do you have an outline that is a best-practice? I rewrote this once before when I dumped phpmailer and it's painful to think that I'd have to do it again...
Thanks!