Fixed email issue

This commit is contained in:
harish
2024-11-12 20:13:35 +05:30
parent f9a007f69f
commit c3fa051e7a
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ public class MailgunEmailService implements EmailService {
// Send email via Mailgun API
if (Boolean.FALSE.equals(validator.isTestProfileActivated())) {
ResponseEntity<Void> response = mailgunFeignClient.sendEmail(domain, from, List.of("rajeshkhoreupwork@gmail.com"), subject, body, authHeader);
ResponseEntity<Void> response = mailgunFeignClient.sendEmail(domain, from, recipientEmails, subject, body, authHeader);
if (!response.getStatusCode().is2xxSuccessful()) {
throw new RuntimeException("Failed to send email via Mailgun: " + response.getStatusCode());
}