mercredi 23 septembre 2015

Send email using laravel

I have a contact form and I want to send email to the admin of the page when a visitor sends a message from the contact form.

  public function send(Request $request){
        Mail::send('email.message',[
            'request' => $request
        ], function($m) use ($request) {
            $m->from($request->email);
            $m->to('mail@domain.com', 'Name')->subject('Your Reminder!');
        });
   }

How can I configure it to send email without using gmail?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire