Support the ongoing development of →
Installation Mail Packages
Last updated 1 year ago.

In case you haven't figured this out:


If you set the driver to mandrill, it's going to try to send via the api in which case it will look to config/services for your api key and in your case, it will find an empty string and you get the uhappiness noted above.

If you want to send using the api, create an environment variable for your mandrill key and reference it in config/services like so:

  'mandrill' => [
        'secret' => env('MANDRILL_KEY'),

Hi, Set MAIL_DRIVER=smtp Results error in both cases Connection could not be established with host [Connection refused #111]

Set MAIL_DRIVER=mandrill It work in both cases But also had to set from email in /config/mail.php or else reset password wouldn't work

'from' => ['address' => env('MAIL_FROM_ADDRESS', null), 'name' => env('MAIL_FROM_NAME', null)],

I would like to know how to set from email specifically for the reset password. Any ideas?

Many thanks for the above answer, Shawn.


I haven't tried this, but overriding the ResetsPasswords trait by adding and updating the postEmail method to PasswordController should work (someone more experienced may know of a better way to do this):

Your PasswordController would look something like this (don't forget your imports):

   use ResetsPasswords;

     * Send a reset link to the given user.
     * @param  \Illuminate\Http\Request  $request
     * @return \Illuminate\Http\Response
    public function postEmail(Request $request)
        $this->validate($request, ['email' => 'required|email']);

        $response = Password::sendResetLink($request->only('email'), function (Message $message) {
            $message->from('[email protected]', 'Name');

        switch ($response) {
            case Password::RESET_LINK_SENT:
                return redirect()->back()->with('status', trans($response));

            case Password::INVALID_USER:
                return redirect()->back()->withErrors(['email' => trans($response)]);

In controller dont forget to add use Mail;


What do you mean by "don't forget your imports"?

FYI I am newbie

I tried use Mail; and others


Just work

use Illuminate\Http\Request;


Sign in to participate in this thread!


Your banner here too?


We'd like to thank these amazing companies for supporting us

Your logo here?

The Laravel portal for problem solving, knowledge sharing and community building.

© 2023 - All rights reserved.