Hi i'm trying to make a simple contact form with laravel. i can't get the mail to send.
i'm allways getting a error.
Address in mailbox given [jordygroote.nl] does not comply with RFC 2822, 3.6.2.
$data = $request->all();
Mail::send('emails.contact', $data, function($message) use ($data)
{
//email 'From' field: Get users email add and name
$message->from($data['email'] , $data['naam']);
//email 'To' field: cahnge this to emails that you want to be notified.
$message->to('jordygroote@live.nl', 'Jordy Groote')->subject('contact request');
});
}
This is in my mailcontroller.
this is $data dd()'d.
also i don't know how to configure my config/mail.php if i just wanna use php mail function.
Please help,
thanks in advance.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/1YB8w56
via IFTTT
Aucun commentaire:
Enregistrer un commentaire