I can send use of the Gmail account but I can not send mail using laravel 4 in my mail host?

advertisements

:)

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' => '[email protected]', 'name' => 'my_name'),
'encryption' => 'tsl',
'username' => '[email protected]',
'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('[email protected]', '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 :)


This may be a DNS / Email forwarding issue. Try checking your hosting provider which I assume is servage.net. Make sure your DNS settings are properly setup and pointing to the correct nameservers. Also, check to see if your host provider actually provides an email service or simply forwards emails. Once you have the right settings you'll probably have to wait anywhere from an hour to 48 hours to be sure they're set