Probably someone can see what I'm doing wrong here. When I use ->from('test@example.com')
the mail sends just fine. But when i use >from('test@hotmail.com')
the mail is not sent. Everything is done in mail configuration as well.
$data = array("content" => Input::get("content"));
Mail::send("emails.text", $data, function($message)
{
$message->to('toMe@myDomain.com')
->from('test@hotmail.com' , 'Contact form message!');
});
Config:
'driver' => 'smtp',
'host' => 'mail.cornex.se',
'port' => 587,
'from' => array('address' => "christopher@cornex.se", 'name' => "Kristoffer"),
'encryption' => 'tls',
Hotmail uses Outlook SMTP. Try this:
You may need to make slight modifications, but make note of the host
, specifically.
'driver' => 'smtp',
'host' => 'smtp-mail.outlook.com',
'from' => array('address' => "christopher@cornex.se", 'name' => "Kristoffer")
'port' => 587, // or 25
'encryption' => 'tls',