CodeIgniter默认邮件程序无法使用PHP SMTP发送电子邮件

时间:2019-12-30 11:09:27

标签: php codeigniter email smtp gmail

尝试使用默认的CodeIgniter邮件发送电子邮件时,出现以下错误。我浏览了StackOverflow以找到解决方案,但是没有一个答案解决了我的问题。以下是堆栈跟踪。

Dim myakaze As AKAZE = AKAZE.Create
'Get the descriptor for the image
Dim descriptor1 As New Mat()
Dim keyPoints1 As KeyPoint()
myakaze.DetectAndCompute(img1, Nothing, keyPoints1, descriptor1)

Dim matcher As New BFMatcher
Dim bow As New BOWImgDescriptorExtractor(myakaze, matcher)
bow.SetVocabulary(TheClusters)
Dim resultfromCompute As Integer()()
Dim des2 As New Mat
descriptor1.ConvertTo(descriptor1, MatType.CV_32F)
bow.Compute(descriptor1, des2, resultfromCompute)      

我尝试了以下解决方案:-

  1. 启用对安全性较低的应用程序的访问。

  2. 将主机从smtp.gmail.com更改为ssl://smtp.gmail.com

  3. 在php.ini文件中启用openssl

一些答案​​表明,可能会产生此问题,因为如果在帐户中启用了2要素身份验证,那么我们必须执行google帮助页面(适用于Gmail)中提到的某些步骤。在我的情况下,未启用2因素身份验证,因此我排除了这种可能性。

1 个答案:

答案 0 :(得分:1)

与Google交流后,我得到了很多建议(没有具体答案)。他们要求我尝试一些步骤。建议之一是启用IMAP访问,这解决了我的问题。如果您想尝试此补救措施,请转到Gmail收件箱,然后按照以下步骤操作。

第1步:

enter image description here

第2步:

enter image description here

第3步:

enter image description here