首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Sendinblue SMTP在CodeIgniter中不起作用

Sendinblue SMTP在CodeIgniter中不起作用
EN

Stack Overflow用户
提问于 2020-03-05 17:36:35
回答 1查看 797关注 0票数 0

我正在使用CodeIgniter,我已经为我的客户设置了一堆电子邮件,并通过SMTP发送他们…现在工作的要求是使用Sendinblue发送电子邮件...所以我简单地用Sendinblue提供的替换了我的SMTP凭证...邮件不会被发送..请帮帮忙

较旧的代码(发送邮件时)

代码语言:javascript
复制
$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详细信息(邮件现在不起作用)

代码语言:javascript
复制
$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
            );
EN

回答 1

Stack Overflow用户

发布于 2020-03-05 18:07:25

我找到了另一个简单的解决方案..粘贴我的答案如果任何人在未来需要...我已经使用了这个CURL请求,SendinBlue提供的Mailin

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

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/60542138

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档