0

我正在使用 CodeIgniter,我已经为我的客户设置了一堆电子邮件并通过 SMTP 发送它们......现在工作的要求是使用 Sendinblue 发送电子邮件......所以我只是用提供的证书替换了我的 SMTP 凭证通过 Sendinblue ......并且没有发送邮件......请帮助

旧代码(发送邮件时)

$config = array(
                'protocol' => 'smtp', // 'mail', 'sendmail', or 'smtp'
                'smtp_host' => smtp.example.com,
                'smtp_port' => 465,
                'smtp_user' => MY_USER,
                'smtp_pass' => '',

                'smtp_crypto' => 'ssl', //can be 'ssl' or 'tls' for example
                'mailtype' => 'html', //plaintext 'text' mails or 'html'
                'smtp_timeout' => '4000', //in seconds
                'charset' => 'iso-8859-1',
                'wordwrap' => TRUE
            );

SendinBlue SMTP 详细信息(邮件现在不工作)

$config = array(
                'protocol' => 'smtp', // 'mail', 'sendmail', or 'smtp'
                'smtp_host' => smtp-relay.sendinblue.com,
                'smtp_port' => 587,
                'smtp_user' => MY_USER,
                'smtp_pass' => MY_PASS,

                'smtp_crypto' => 'ssl', //can be 'ssl' or 'tls' for example
                'mailtype' => 'html', //plaintext 'text' mails or 'html'
                'smtp_timeout' => '4000', //in seconds
                'charset' => 'iso-8859-1',
                'wordwrap' => TRUE
            );
4

1 回答 1

0

我找到了一个替代的简单解决方案。如果将来有人需要,请粘贴我的答案...我使用了这个 CURL 请求,Mailin 由 SendinBlue 提供

https://github.com/mailin-api/mailin-api-php/tree/master/src/Sendinblue

于 2020-03-05T10:07:25.417 回答