Hi Rob,
Thank you for your answer, which doesn't seem to go in the same way as Luke and Glenn.
In your approach, there is three independants parts in the system : the client, the API, the email service.
The problem is that the email sent when creating a new user is not of the choice of the client.
For me, it is the API that hosts the email because, for instance, the API is the only part to know the user password, that has probably been generated in the creation process. Nor the client or the email service knows the clear text password of the user.
So I would say that the API acts as a Façade for the client, hiding the email service that is behind the API.
In short, the API has its own email service and the client should decide whether or not to user it. It can also use an other email service, one of his own, but should know that it won't have full information, like the password.
Do you have an idea on how to deal with this problem ?
Thanks