Forums
This topic is locked
Sending emails automatically
Posted 26 Mar 2004 07:20:44
1
has voted
26 Mar 2004 07:20:44 Charles Beaudry posted:
Anyone know of a chunk of code that will send out emails automatically each day? Our site has a 7-day free trial period and we'd like the system to send out an email to everyone who took advantage of the 7 days at the end of their trial. Since there's a bunch of people signed up, doing it manually is too time-consuming.
Any ideas on how to do this? Obviously, there are fields with subscription expiration dates and email addresses in the database.
Thanks.
Replies
Replied 26 Mar 2004 21:13:01
26 Mar 2004 21:13:01 Rene Bandsma replied:
Maybe you can buy the Smart Mailer exention from DMXZone, connect the mailer to a database and create a code that counts the difference in days bewteen the date the customer has tried your system and today (now). Via an if, else construction you can send mails only when days = 7 or days > 7