I need help to figure out how to set the reply-to
field in app/config/mail.php
. I'm using Laravel 4 and it's not working. This is my app/config/mail.php
:
<?php
return array(
'driver' => 'smtp',
'host' => 'smtp.gmail.com',
'port' => 587,
'from' => [
'address' => 'sender@domain.com',
'name' => 'E-mail 1'
],
'reply-to' => [
'address' => 'replyto@domain.com',
'name' => 'E-mail 2'
],
'encryption' => 'tls',
'username' => 'sender@domain.com',
'password' => 'pwd',
'pretend' => false,
);
See Question&Answers more detail:os