feat: enhance email handling with improved error reporting and statistics

- Updated the `reenviarEmail` mutation to return detailed error messages for better user feedback.
- Added a new query to obtain email queue statistics, providing insights into email statuses.
- Enhanced the `processarFilaEmails` mutation to track processing failures and successes more effectively.
- Implemented a manual email processing mutation for immediate testing and control over email sending.
- Improved email validation and error handling in the email sending action, ensuring robust delivery processes.
This commit is contained in:
2025-11-04 02:14:07 -03:00
parent e6105ae8ea
commit 5d2df8077b
3 changed files with 209 additions and 17 deletions

View File

@@ -42,8 +42,11 @@ export const testarConexao = action({
pass: args.senha,
},
tls: {
rejectUnauthorized: !args.usarTLS ? false : false,
rejectUnauthorized: false,
},
connectionTimeout: 10000, // 10 segundos
greetingTimeout: 10000,
socketTimeout: 10000,
});
// Verificar conexão