Here's our scenario:
We've built 52 separate emails to correspond to the 52 weeks in a year.
A user signs up by entering name, email, age, and the date of their next sports competition.
If person A signs up and their competition is in 10 weeks... they get email 10, then 9, then 8, then 7... one per week up until their competition.
If person B signs up with only 7 weeks until their competition... they start at email 7, then 6, then 5...one per week up until their competition.
Is it possible to use the API and call something like this...
API.ScheduleEmail(email10, email, datetime.now)
API.ScheduleEmail(email9, email, datetime.now + 1 week)
Is there another way that you could accomplish our problem?
Any help/advice would be appreciated.
You should be able to accomplish this using our Autoresponders.
Set up the competition date as a date based custom field in the list, then you can create an Autoresponder based on this date. You'd need to add each email to this autoresponder set to trigger x weeks before the competition date, then you can sit back and leave the scheduling up to us.
It's not currently possible to create autoresponders via the API so you'd have to login to set this up but once it's done you won't have to maintain anything.
Hope that helps.
Ok great thanks Toby!