:)
I have created the Contact Us form using laravel 4
when I set 'app/config/mail.php' file
to my gmail account , like this :
///
'driver' => 'smtp',
host' => 'smtp.gmail.com',
..
......
//
I can send message successfully
but the problem when , I set the 'app/config/mail.php' file to my own email settings with my host like this :
'driver' => 'smtp',
'host' => 'smtp1.servage.net',
'port' => 25,
'from' => array('address' => 'adress@mywebsite.com', 'name' => 'my_name'),
'encryption' => 'tsl',
'username' => 'my_login@mywebsite.com',
'password' => 'my_pass',
'sendmail' => '/usr/sbin/sendmail -bs',
'pretend' => false,
controller function :
Mail::send('emails.contactus', array('message'=>Input::get('message')), function($message) use ($dataContact){
$message->from($dataContact['emailsender'] , $dataContact['username']);
$message->to('adress@mywebsite.com', 'admin')->replyTo($dataContact['emailsender'] ,$dataContact['username'])->subject('contact request');
});
I send without any error but when I check my inbox , I don't receive any message :(
What is the problem for this ? or is there another solution I can use it ? and thank you :)