Not logged in - Login
View History

Use Case: Birthday Congratulations

Sending a birthday congratulation to users needs many lines of codes for calculate birthday, daily database check for birthdays, daily scheduling, etc. now you can implement it using 3 lines of code.


Solution Using A Trigger

Using A Trigger, time is not a problem at all. forget everything about time and just write just a line of code to send email on a custom URL.

For example: http:[email protected]om

task function on your url
pseudo:

*validateRequest
SEND Congratulate EMAIL TO [email protected]


At the page of signup, just add 1 line of code to create a task for user.

singup page
pseudo:

tag("type") = "birthdayEmail"

ATrigger.doCreate("1year", "http://example.com/admin/sendBirthday?name=John&[email protected]", tags, -1, "2013-08-26T18:00:00Z")