I set \'pretend\' => true,
in the mail.php
, created this new.php
view:
E-mail: {{
If you set 'pretend' => true
in app/config/mail.php
then no mail is ever sent, you get just a message in the log, like this:
[2014-07-17 14:15:07] production.INFO:
Pretending to mail message to: foo@example.com [] []
However, if you leave 'pretend' => false
and instead use the log
driver ('driver' => 'log'
, available since Laravel 4.2), then instead of sending the mail, you'll get the whole mail content written into the log:
[2014-07-17 14:15:14] production.DEBUG:
Message-ID:
Date: Thu, 17 Jul 2014 14:15:15 +0000
Subject: Welcome!
From: Ahmad
To: John Smith
MIME-Version: 1.0
Content-Type: text/html; charset=utf-8
Content-Transfer-Encoding: quoted-printable
Order confirmed!
[] []