Skip to content

Commit

Permalink
Update the .env to use smtp mailer when mailpit is installed
Browse files Browse the repository at this point in the history
  • Loading branch information
SamuelMwangiW committed Mar 7, 2024
1 parent 437a864 commit f29ebd1
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ protected function replaceEnvVariables(array $services)
}

if (in_array('mailpit', $services)) {
$environment = preg_replace("/^MAIL_MAILER=(.*)/m", "MAIL_MAILER=smtp", $environment);
$environment = preg_replace("/^MAIL_HOST=(.*)/m", "MAIL_HOST=mailpit", $environment);
$environment = preg_replace("/^MAIL_PORT=(.*)/m", "MAIL_PORT=1025", $environment);
}
Expand Down

0 comments on commit f29ebd1

Please sign in to comment.