title: What is the best way to handle emails when using Rails + Devise for an API
body: <p>I have a Rails-based API that has successfully integrated Devise. One remaining question I have is how to handle emails (confirmation and reset password). Devise automatically sends out these emails with links to its views. Since the API shouldn't handle views, what's the best way to deal with this? My questions are:</p>
  
  <ol>
  <li>Is it inevitable that the API would contain some html templates since Devise sends out these emails? Is there a way for these templates to be on the client side?</li>
  <li>How do I do with the links, which contains information like confirmation tokens and reset_password_tokens? I am not well-versed in client-side tech but should the links point to the client side's domain so that it can capture, rip out the tokens and make the calls in the background?</li>
  </ol>
  
  <p>Thank you.</p>