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/co
Pretty sure it doesn't work this way. You can set the "From" header in the config file, but everything else is passed during the send:
Mail::send('emails.welcome', $data, function($message)
{
$message->to('foo@example.com', 'John Smith')
->replyTo('reply@example.com', 'Reply Guy')
->subject('Welcome!');
});
FWIW, the $message passed to the callback is an instance of Illuminate\Mail\Message, so there are various methods you can call on it:
Plus, there is a magic __call method, so you can run any method that you would normally run on the underlying SwiftMailer class.