Skip to content

feat(email): Send verification code by email using JavaMail with HTML#9

Open
ELMERJIMENEZ29 wants to merge 9 commits intodevelopfrom
feature/2-register-user
Open

feat(email): Send verification code by email using JavaMail with HTML#9
ELMERJIMENEZ29 wants to merge 9 commits intodevelopfrom
feature/2-register-user

Conversation

@ELMERJIMENEZ29
Copy link
Copy Markdown
Contributor

🛠️ Cambios realizados en notifications-ms

  • ✉️ EmailService = Se creó la clase EmailService para enviar correos utilizando JavaMail (JavaMailSender), con soporte para HTML.
  • 🧩 Template HTML = Se desarrolló una plantilla HTML (email-template.html) con diseño visual y espacio dinámico para mostrar el código.
  • 📩 Servicio gRPC = Se implementó NotificationGrpcService para recibir solicitudes desde auth-ms vía gRPC.
  • 🔄 Lógica integrada = Se integró el envío del correo dentro del método gRPC, utilizando los parámetros recibidos: correo, asunto, y código.
  • 🧪 Pruebas locales = Se realizaron pruebas manuales para validar la entrega correcta del correo y la visualización adecuada del código.

📌 Notas finales
🔄 Este microservicio actúa únicamente como receptor de solicitudes desde auth-ms.
🧠 No se realizaron cambios en auth-ms, solo se configuró notifications-ms para procesar el código ya generado.

ELMERJIMENEZ29 and others added 9 commits May 16, 2025 01:27
Details:
- Added SendGridEmailService with dual injection support
- Comprehensive unit tests with mocking
- Real integration tests using sandbox mode
- Externalized configuration
-add unit tests for email services
-Add environment configurations
- Include test coverage
Changes:
- Implemented MimeMessageHelper with HTML support
- Added template resource loader (UTF-8 encoded)
- Created email template with modern CSS styling
- Maintained backward compatibility
- Improved error handling for template processing

Testing:
- Verified template loading from classpath
- Confirmed proper variable substitution
- Tested rendering across major email clients
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants