Skip to content

$Email->initialize($config) not work! #1042

Description

@35598253

https://bcit-ci.github.io/CodeIgniter4/libraries/email.html

Setting Email Preferences

$email = \Config\Services::email();
$config['protocol'] = 'sendmail';
$config['mailPath'] = '/usr/sbin/sendmail';
$config['charset'] = 'iso-8859-1';
$config['wordWrap'] = true;

$email->initialize($config);

OR
$email = new \CodeIgniter\Email\Email($config);

print_r($email);
the email config not change

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions