Welcome Guest, Not a member yet? Register   Sign In
Email error - MessageFormatter::formatMessage(): Creating message formatter failed

Hello all

I use email library of Codeigniter 4, the email is sent successfully but this error appears:

Quote:MessageFormatter::formatMessage(): Creating message formatter failed
SYSTEMPATH/Language/Language.php at line 248

This is my code:

    $config['protocol'] = 'smtp';
    $config['SMTPHost'] = 'smtp.mailtrap.io';
    $config['SMTPUser'] = 'xxxxxxxxxxxxxx';
    $config['SMTPPass'] = 'xxxxxxxxxxxxxx';
    $config['SMTPPort'] = 25;
    $config['SMTPCrypto'] = 'tls';
    $config['mailType'] = 'html';
    $config['charset'] = 'utf-8';
    $config['CRLF'] = "\r\n";
    $config['newline'] = "\r\n";

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

    $email->setFrom('[email protected]');
    $email->setTo('[email protected]');
    $email->setSubject('Asunto de Prueba');
    $email->setMessage('Texto de Prueba...');


I attach the image of error.

I appreciate your help in advance.


Attached Files Thumbnail(s)

Theme © iAndrew 2016 - Forum software by © MyBB