email sending issue with CI4 - 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: email sending issue with CI4 (/showthread.php?tid=79944) |
email sending issue with CI4 - adil - 08-20-2021 Hi guys, iam getting error while sending email using CI4.please help controller code : Code: $email1 = \Config\Services::email(); Code: <?php Code: Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method. RE: email sending issue with CI4 - paliz - 08-20-2021 PHP Code: do it like me work on live host PHP Code: $email = \Codeigniter\Config\Services::email(); RE: email sending issue with CI4 - adil - 08-20-2021 (08-20-2021, 09:49 AM)paliz Wrote: Still getting the error.it was working fine yesterday.i didnt change any code or anything. When i use public $SMTPCrypto = ''; Code: public $SMTPCrypto = ''; Code: hello: 452 syntax error (connecting) RE: email sending issue with CI4 - ikesela - 08-20-2021 check your smtp mail log, its your server maybe not CI4 RE: email sending issue with CI4 - adil - 08-20-2021 (08-20-2021, 11:53 AM)ikesela Wrote: check your smtp mail log, its your server maybe not CI4 hi, where is the smtp mail log in wamp server? RE: email sending issue with CI4 - the_steff - 08-20-2021 Hi, If you are working locally trying to send email with wamp, I suggest you to try this service during your developpement : https://mailtrap.io/ I get (a lot of) issues with email sending and the problem was not CI4 or wamp but providers resctrictive policies trying to fight against spam. Once your app is ok, it should work as well online with your providers smtp settings. Hope this will help ! |