Sending email using smtp doesn't work - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: CodeIgniter 4 (https://forum.codeigniter.com/forumdisplay.php?fid=28) +--- Forum: CodeIgniter 4 Support (https://forum.codeigniter.com/forumdisplay.php?fid=30) +--- Thread: Sending email using smtp doesn't work (/showthread.php?tid=76088) |
Sending email using smtp doesn't work - muuucho - 04-13-2020 The following code doesn't work (no email is received) PHP Code: <?php namespace App\Controllers; RE: Sending email using smtp doesn't work - muuucho - 04-14-2020 I have also tried sendgrid without success: PHP Code: $config['protocol'] = 'smtp'; RE: Sending email using smtp doesn't work - elephpantech - 04-14-2020 Works fine with: public $fromEmail = '[email protected]'; public $protocol = 'smtp'; public $SMTPHost = 'smtp.gmail.com'; public $SMTPUser = '[email protected]'; public $SMTPPass = '********'; public $SMTPPort = 587; public $SMTPCrypto = 'tls'; RE: Sending email using smtp doesn't work - muuucho - 04-15-2020 (04-14-2020, 06:27 AM)elephpantech Wrote: Works fine with:Thanks, that works. Is was wrong in the setting of port/crypto and host. I will now start to test using Sendgrid or another email service. |