Welcome Guest, Not a member yet? Register   Sign In
problem to send mail suind xampp

I'm new, I need your help please.
I just started using CodeIgniter 4 and I tried to send email using smtp.
I configured everything but the email doesn't want to send an it gave an error message like

Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method

$email = \Config\Services::email();

$config['mailPath'] = '/usr/sbin/sendmail';
$config['protocol'] = 'smtp';
$config['wordWrap'] = true;
$config['SMTPHost'] = 'smtp.gmail.com';
$config['SMTPUser'] = '';
$config['SMTPPass'] = '';
$config['SMTPCrypto'] = 'ssl';
$config['mailtype']    = "html";
        $config['charset']      = "utf-8";
$config['SMTPPort'] = 587;
$config['newline']  = "\r\n";


please help

(This post was last modified: 09-18-2020, 06:02 PM by InsiteFX.)

You need to install an email server with xampp now.

You use to be able to use sendmail but they took it out so far as I know.

You could try using your internet service providers smtp or gmail smtp.
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )

Theme © iAndrew 2016 - Forum software by © MyBB