i have a laravel 5.2 project working in a BLUEHOST shared server, and i having troubles configuring my email app, i'm not using another mail service (like mailgun) just the laravel's service, i tried it with my gmail account and their configurations and this worked fine (just for testing), so i need setup it with the BLUEHOST mail service.
I have this data form my email account configuration provided by BLUEHOST:
Email Settings
Mail Server Username: info@domain.com
Standard (without SSL)
Incoming Mail Server: mail.domain.com
Supported Ports: 143 (IMAP), 110 (POP3)
Outgoing Mail Server: mail.domain.com
Supported Port: 26 (server requires authentication)
Private (with SSL)
Incoming Mail Server: box668.bluehost.com (SSL)
Supported Ports: 993 (IMAP), 995 (POP3)
Outgoing Mail Server: box668.bluehost.com (SSL)
Supported Port: 465 (server requires authentication)
Supported Incoming Mail Protocols: POP3, IMAP
Supported Outgoing Mail Protocols: SMTP
My config/mail.php:
<?php
return [
'driver' => env('MAIL_DRIVER', 'smtp'),
'host' => env('MAIL_HOST', 'mail.domain.com'),
'port' => env('MAIL_PORT', 465),
'from' => ['address' => 'info@domain.com', 'name' => 'Some name'],
'encryption' => env('MAIL_ENCRYPTION', 'ssl'),
'username' => env('MAIL_USERNAME'),
'password' => env('MAIL_PASSWORD'),
'sendmail' => '/usr/sbin/sendmail -bs',
];
My .env email setup:
MAIL_DRIVER=smtp
MAIL_HOST=mail.domain.com
MAIL_PORT=465
MAIL_USERNAME=info@domain.com
MAIL_PASSWORD=info123+
MAIL_ENCRYPTION=ssl
I tried both options (Standard (without SSL) and Private (with SSL)) however i got this error:
Swift_TransportException in StreamBuffer.php line 269:
Connection could not be established with host mail.domain.com [ #0]
What's wrong? or my customer must buy a Mailgun's subscription?