Skip to content

Commit

Permalink
Add reply-to on config for Mailer
Browse files Browse the repository at this point in the history
  • Loading branch information
m-tatsuto authored and taylorotwell committed Dec 15, 2016
1 parent 4f38130 commit 7b1474d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/Illuminate/Mail/MailServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public function register()
if (is_array($to) && isset($to['address'])) {
$mailer->alwaysTo($to['address'], $to['name']);
}

$replyTo = $app['config']['mail.reply-to'];

if (is_array($replyTo) && isset($replyTo['address'])) {
Expand Down
6 changes: 3 additions & 3 deletions src/Illuminate/Mail/Mailer.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class Mailer implements MailerContract, MailQueueContract
* @var array
*/
protected $to;

/**
* The global reply-to address and name.
*
Expand Down Expand Up @@ -118,7 +118,7 @@ public function alwaysTo($address, $name = null)
{
$this->to = compact('address', 'name');
}

/**
* Set the global reply-to address and name.
*
Expand Down Expand Up @@ -435,7 +435,7 @@ protected function createMessage()
if (! empty($this->from['address'])) {
$message->from($this->from['address'], $this->from['name']);
}

// If a global reply-to address has been specified we will set it on every message
// instances so the developer does not have to repeat themselves every time
// they create a new message. We will just go ahead and push the address.
Expand Down

0 comments on commit 7b1474d

Please sign in to comment.