Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion src/Illuminate/Mail/MailServiceProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,14 @@ public function register()
$mailer->alwaysFrom($from['address'], $from['name']);
}

// If a "pretend" value is set, we will set it on the mailer. This allows
// developers to enable/disable sending through configuration
if (isset($app['config']['mail.pretend']))
{
$pretend = (bool) $app['config']['mail.pretend'];
$mailer->pretend($pretend);
}

return $mailer;
});
}
Expand Down Expand Up @@ -113,4 +121,4 @@ public function provides()
return array('mailer', 'swift.mailer', 'swift.transport');
}

}
}