When building a service that uses both a back-end REST API, and (a) front-end application(s), is it proper to build into that API the ability to dispatch email?
Take Twitter for example; for those who don't know, they function with a back-end REST API and a front-end static website that consumes JSON resources.
I don't know their internals, so I really don't know how to handle this situation for myself, however obviously they do allow users to sign up, register, recover their passwords, confirm their accounts, et cetera. Most of these things require an email to be dispatched to the user. Does the API do that, or how is this implemented?