CodeIgniter Forums
Emails sent to Hotmail are vanishing - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11)
+--- Thread: Emails sent to Hotmail are vanishing (/showthread.php?tid=69635)

Pages: 1 2


RE: Emails sent to Hotmail are vanishing - Wouter60 - 12-29-2017

I tried sending emails with Gmail as smtp, but I get this error:
Code:
The following SMTP error was encountered: 145 Connection timed out
Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.

My config/email.php file looks like this:
PHP Code:
$config['protocol'] = 'smtp';
$config['smtp_host'] = 'ssl://smtp.googlemail.com';
$config['smtp_port'] = 465;
$config['smtp_user'] = '[email protected]';
$config['smtp_pass'] = 'my_password';
$config['mailtype' 'html'
$config['charset'  'iso-8859-1';
$config['wordwrap' TRUE



RE: Emails sent to Hotmail are vanishing - Paradinight - 12-29-2017

@Wouter60

https://mxtoolbox.com/spf.aspx

and

https://mxtoolbox.com/blacklists.aspx


RE: Emails sent to Hotmail are vanishing - Wouter60 - 12-29-2017

(12-28-2017, 04:15 PM)simon Wrote: First is to check the 'spammyness' of my emails with https://www.mail-tester.com
It gives your message/server a score out of 10, but breaks down the reason for that. I was getting below 3 on my message/server combination, but am now usually 9 or above.

My score is 8.6


RE: Emails sent to Hotmail are vanishing - Wouter60 - 12-29-2017

(12-29-2017, 05:03 AM)Paradinight Wrote: @Wouter60

https://mxtoolbox.com/spf.aspx

and

https://mxtoolbox.com/blacklists.aspx

My domain isn't on any blacklist.
But in the toolbox, the mail server gives 1 error: DNS not found. Could that be the problem?


RE: Emails sent to Hotmail are vanishing - jreklund - 12-29-2017

@Wouter60: You may need to enable "Unsafe applications" and change your config.
Gmail are picky on how you send your new lines.

https://support.google.com/accounts/answer/6010255?hl=en

PHP Code:
$config = [
    
'protocol'        => 'smtp',
    
'smtp_host'        => 'ssl://smtp.gmail.com',
    
'smtp_port'        => 465,
    
'mailtype'        => 'html',
    
'smtp_user'        => '',
    
'smtp_pass'        => '',
    
'newline'        => "\r\n",
]; 



RE: Emails sent to Hotmail are vanishing - Paradinight - 12-29-2017

(12-29-2017, 06:19 AM)Wouter60 Wrote:
(12-29-2017, 05:03 AM)Paradinight Wrote: @Wouter60

https://mxtoolbox.com/spf.aspx

and

https://mxtoolbox.com/blacklists.aspx

My domain isn't on any blacklist.
But in the toolbox, the mail server gives 1 error: DNS not found. Could that be the problem?

fix the error and check again.