I am using ssl://smtp.googlemail.com as mail service in my webapp. The library I use is email library inside Codeigniter framework. At first, it work seamlessly until Dec 2019. But now, it doesn't work anymore. It just doesn't send email at all. I guess it because I enable ufw, but even after I disable ufw, it still doesn't work. For first solution I was allowing 465, 53 and 25 (tcp and udp) in ufw, but it still doesn't work.
Here is my spec:
- vps: DigitalOcean
- OS: Ubuntu 18
- Server: Apache
- App Framework: Codeigniter
Here is my code:
//Load email library$config = Array('protocol' => 'smtp','smtp_host' => 'ssl://smtp.googlemail.com','smtp_port' => 465,'smtp_user' => $from_email,'smtp_pass' => 'alksjdaldjalsdjkald','mailtype' => 'html','charset' => 'iso-8859-1','wordwrap' => TRUE);$this->load->library('email', $config);
And also I'm using App Password in my gmail account.