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 ?
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire