vendredi 23 octobre 2020

Sent Thank-you email to visitors after form submit via Laravel 5

enter image description here

I'm trying to send out an email in Laravel 5

$mail = Mail::send('layouts.share.emails.confirm', array(
    'message' => $contact->message,
) , function ($message)
{
    $message->from(env('MAIL_FROM') , 'www.jdoe.com');
    if(env('APP_ENV') == 'local'){
        $message->to($email , 'Cyb3r 8200')->subject(' Thank-you from '.env('APP_URL'));
    } else {
        $message->to($email , 'Cyb3r 8200')->subject(' Thank-you from www.jdoe.com ');
    }

});

I kept getting

message: "Undefined variable: email"

Any hints for me ?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2HtjsVF
via IFTTT

Aucun commentaire:

Enregistrer un commentaire