Sending email using smtp doesn't work |
The following code doesn't work (no email is received)
PHP Code: <?php namespace App\Controllers;
I have also tried sendgrid without success:
PHP Code: $config['protocol'] = 'smtp';
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'; (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. |
Welcome Guest, Not a member yet? Register Sign In |