Skip to content

Commit

Permalink
Merge pull request #168 from cviebrock/sc-55469_use-smtp-credentials
Browse files Browse the repository at this point in the history
Set all smtp config settings
  • Loading branch information
gauthierm authored May 27, 2024
2 parents 3c9b575 + 4cc7584 commit d3245f9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Store/StoreOrderCommentDigestMailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,11 @@ protected function getMailMessage()
{
$message = new SiteMultipartMailMessage($this);

$message->smtp_server = $this->config->email->smtp_server;
$message->smtp_server = $this->config->email->smtp_server;
$message->smtp_port = $this->config->email->smtp_port;
$message->smtp_username = $this->config->email->smtp_username;
$message->smtp_password = $this->config->email->smtp_password;

$message->from_address = $this->config->email->website_address;
$message->from_name = $this->config->site->title;
$message->to_address = $this->getToAddress();
Expand Down
5 changes: 4 additions & 1 deletion Store/StoreOrderConfirmationMailMessage.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,10 @@ public function __construct(SiteApplication $app, StoreOrder $order)

$this->order = $order;

$this->smtp_server = $this->app->config->email->smtp_server;
$this->smtp_server = $this->app->config->email->smtp_server;
$this->smtp_port = $this->app->config->email->smtp_port;
$this->smtp_username = $this->app->config->email->smtp_username;
$this->smtp_password = $this->app->config->email->smtp_password;

$this->from_address = $this->app->config->email->service_address;
$this->from_name = $this->getFromName();
Expand Down

0 comments on commit d3245f9

Please sign in to comment.