EmailJS Flows
EmailJS configuration
Section titled “EmailJS configuration”The API uses EmailJS for transactional emails. These environment variables are required:
EMAILJS_SERVICE_IDEMAILJS_PUBLIC_KEYEMAILJS_PRIVATE_KEYEMAILJS_TEMPLATE_REGISTRO_IDEMAILJS_TEMPLATE_OLVIDE_IDEMAILJS_FROM_NAME(optional)
Registration email
Section titled “Registration email”Helper: helpers/EmailRegistro.js
Uses template EMAILJS_TEMPLATE_REGISTRO_ID with the following params:
{ "to_email": "<veterinario email>", "to_name": "<veterinario nombre>", "confirm_url": "<FRONTEND_URL>/confirmarcuenta/<token>", "from_name": "<EMAILJS_FROM_NAME or default>"}Password reset email
Section titled “Password reset email”Helper: helpers/EmailOlvidePassword.js
Uses template EMAILJS_TEMPLATE_OLVIDE_ID with the following params:
{ "to_email": "<veterinario email>", "to_name": "<veterinario nombre>", "reset_url": "<FRONTEND_URL>/olvidepassword/<token>", "from_name": "<EMAILJS_FROM_NAME or default>"}