ushahidi/riverid — Issue #2: Variable to methods to define email contents
Author: brianherbert
Created: 2011-12-16 07:13:54+00:00
State: open

There should be a "message" variable that you can pass free form text to with a unique string that gets replaced with whatever is being returned. For example, when creating a new account, you could POST the following to http://api.example.com/api/requestpassword:

*email:* example@domain.com
*message:* Thank you for registering! Please click this link to confirm your email with token: %token%

The email that would be sent would replace %token% with the appropriate token and the user could then create their password.

Other methods that send email to the user should utilize this functionality.