• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
problem to send mail suind xampp

#1
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";

$email->initialize($config);
$email->setFrom('');
$email->setTo('');


please help
Reply


Messages In This Thread
problem to send mail suind xampp - by meme1234 - 09-18-2020, 10:44 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.