fix(mail): update default email sender to astalange1933@gmail.com for Brevo
This commit is contained in:
@@ -14,6 +14,9 @@ SPRING_MAIL_PASSWORD=xsmtpsib-votre_cle_smtp_brevo
|
||||
SPRING_MAIL_PROPERTIES_MAIL_SMTP_AUTH=true
|
||||
SPRING_MAIL_PROPERTIES_MAIL_SMTP_STARTTLS_ENABLE=true
|
||||
|
||||
# Expéditeur E-mail (doit être un expéditeur validé dans Brevo)
|
||||
APP_MAIL_FROM=astalange1933@gmail.com
|
||||
|
||||
# Configuration Captcha (si applicable)
|
||||
CAPTCHA_SITEKEY=
|
||||
CAPTCHA_SECRET=
|
||||
|
||||
@@ -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) {}
|
||||
|
||||
@@ -37,6 +37,8 @@ server:
|
||||
|
||||
app:
|
||||
version: @project.version@
|
||||
mail:
|
||||
from: ${APP_MAIL_FROM:${spring.mail.username:astalange1933@gmail.com}}
|
||||
|
||||
sporteasy:
|
||||
base-url: https://www.sporteasy.net/join/
|
||||
|
||||
Reference in New Issue
Block a user