Skip to content
Snippets Groups Projects
Commit 8356ebbd authored by Camille Simiand's avatar Camille Simiand
Browse files

Add a MAILER SENDER environment variable

parent 241e4f20
No related branches found
No related tags found
1 merge request!23Tuleap 47 reset my password
......@@ -60,6 +60,8 @@ BY_PASS_CODE=ed156b9188ecddf0c556d5712f0a84cc
# Use smtp or mail in production
MAILER_DSN=null://null
SYMFONY_SECRET=0f817363a768f111a17d2522b8d7e2d72cf738b1
MAILER_SENDER=contact@localhost.com
LEGACY_SRC_SHARED=./capsule-prototype
LEGACY_URL=http://legacy/
LEGACY_URL_EXTERNAL=http://localhost:8081/legacy/
......
framework:
mailer:
dsn: '%env(MAILER_DSN)%'
envelope:
sender: '%env(MAILER_SENDER)%'
headers:
from: 'MemoRekall <%env(MAILER_SENDER)%>'
\ No newline at end of file
......@@ -65,7 +65,6 @@ class RegistrationController extends AbstractController
'app_verify_email',
$user,
(new TemplatedEmail())
->from(new Address('contact@localhost.com', 'MemoRekall'))
->to($user->getEmail())
->subject('Please Confirm your Email')
->htmlTemplate('registration/confirmation_email.html.twig')
......
......@@ -153,20 +153,10 @@ class ResetPasswordController extends AbstractController
try {
$resetToken = $this->resetPasswordHelper->generateResetToken($user);
} catch (ResetPasswordExceptionInterface $e) {
// If you want to tell the user why a reset email was not sent, uncomment
// the lines below and change the redirect to 'app_forgot_password_request'.
// Caution: This may reveal if a user is registered or not.
//
// $this->addFlash('reset_password_error', sprintf(
// 'There was a problem handling your password reset request - %s',
// $e->getReason()
// ));
return $this->redirectToRoute('app_check_email');
}
$email = (new TemplatedEmail())
->from(new Address('contact@localhost.com', 'MemoRekall'))
->to($user->getEmail())
->subject('Your password reset request')
->htmlTemplate('reset_password/email.html.twig')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment