|
@@ -20,6 +20,7 @@ class OrganizationDeletionHandler
|
|
|
public function __construct(
|
|
public function __construct(
|
|
|
private readonly OrganizationFactory $organizationFactory,
|
|
private readonly OrganizationFactory $organizationFactory,
|
|
|
private readonly MailerInterface $symfonyMailer,
|
|
private readonly MailerInterface $symfonyMailer,
|
|
|
|
|
+ private readonly string $opentalentMailReport
|
|
|
) {}
|
|
) {}
|
|
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -46,9 +47,9 @@ class OrganizationDeletionHandler
|
|
|
} finally {
|
|
} finally {
|
|
|
if ($organizationCreationRequest->getSendConfirmationEmailAt() !== null) {
|
|
if ($organizationCreationRequest->getSendConfirmationEmailAt() !== null) {
|
|
|
$symfonyMail = (new SymfonyEmail())
|
|
$symfonyMail = (new SymfonyEmail())
|
|
|
- ->from('mail.report@opentalent.fr')
|
|
|
|
|
- ->replyTo('mail.report@opentalent.fr')
|
|
|
|
|
- ->returnPath(Address::create('mail.report@opentalent.fr'))
|
|
|
|
|
|
|
+ ->from($this->opentalentMailReport)
|
|
|
|
|
+ ->replyTo($this->opentalentMailReport)
|
|
|
|
|
+ ->returnPath(Address::create($this->opentalentMailReport))
|
|
|
->to($organizationCreationRequest->getSendConfirmationEmailAt())
|
|
->to($organizationCreationRequest->getSendConfirmationEmailAt())
|
|
|
->subject($mail['subject'])
|
|
->subject($mail['subject'])
|
|
|
->text($mail['content']);
|
|
->text($mail['content']);
|