fix(mail): update default email sender to astalange1933@gmail.com for Brevo
This commit is contained in:
@@ -28,8 +28,8 @@ public class PaiementEmailService {
|
||||
private final JavaMailSender mailSender;
|
||||
private final PaiementRepository paiementRepository;
|
||||
|
||||
@Value("${app.mail.from:${spring.mail.username:noreply@as-talange.fr}}")
|
||||
private String fromEmail = "noreply@as-talange.fr";
|
||||
@Value("${app.mail.from:${spring.mail.username:astalange1933@gmail.com}}")
|
||||
private String fromEmail = "astalange1933@gmail.com";
|
||||
|
||||
public PaiementEmailService(@Autowired(required = false) JavaMailSender mailSender,
|
||||
PaiementRepository paiementRepository) {
|
||||
@@ -41,7 +41,7 @@ public class PaiementEmailService {
|
||||
if (fromEmail != null && !fromEmail.trim().isEmpty() && fromEmail.contains("@")) {
|
||||
return fromEmail.trim();
|
||||
}
|
||||
return "noreply@as-talange.fr";
|
||||
return "astalange1933@gmail.com";
|
||||
}
|
||||
|
||||
public void sendPaiementConfirmationAsync(Long paiementId) {
|
||||
|
||||
@@ -30,7 +30,7 @@ public class SportEasyEmailService {
|
||||
@Value("${sporteasy.base-url:https://www.sporteasy.net/join/}")
|
||||
private String sportEasyBaseUrl;
|
||||
|
||||
@Value("${app.mail.from:${spring.mail.username:noreply@as-talange.fr}}")
|
||||
@Value("${app.mail.from:${spring.mail.username:astalange1933@gmail.com}}")
|
||||
private String fromEmail;
|
||||
|
||||
public SportEasyEmailService(LicenceRepository licenceRepository,
|
||||
@@ -45,7 +45,7 @@ public class SportEasyEmailService {
|
||||
if (fromEmail != null && !fromEmail.trim().isEmpty() && fromEmail.contains("@")) {
|
||||
return fromEmail.trim();
|
||||
}
|
||||
return "noreply@as-talange.fr";
|
||||
return "astalange1933@gmail.com";
|
||||
}
|
||||
|
||||
public record BatchSendResult(int sentCount, int skippedCount, int errorCount, String message) {}
|
||||
|
||||
Reference in New Issue
Block a user