- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我无法使用 gmail SMTP 发送电子邮件,这是我在 print_r
对象时得到的结果。
我对 phpMailer 属性的用户名和密码使用相同的 gmail 凭据,所以我确定我的凭据是正确的,但不知道为什么它没有发送。
谢谢,感谢任何支持。
EMailer Object
(
[pathViews:protected] => application.views.email
[pathLayouts:protected] => application.views.email.layouts
[_myMailer:EMailer:private] => PHPMailer Object
(
[Priority] => 3
[CharSet] => UTF-8
[ContentType] => text/html
[Encoding] => 8bit
[ErrorInfo] => SMTP Error: Could not authenticate.
[From] => support@qelasy.com
[FromName] => Qelasy Administrator
[Sender] =>
[Subject] => Qelasy Security PIN
[Body] => Dear Parent,<br /><br />You have successfully registered for Qelasy Security System.<br /><br />Please use this PIN to activate your tablet: <b>34123</b>.<br /><br />Thank you for registering with Qelasy Security System.<br /><br />We value your participation.<br /><br />If you have any questions please call +33 6 9881 1914 or email us at help@qelasy.com.<br /><br />Thank You,<br />Qelasy Security Team
[AltBody] =>
[WordWrap] => 0
[Mailer] => smtp
[Sendmail] => /usr/sbin/sendmail
[PluginDir] =>
[ConfirmReadingTo] =>
[Hostname] =>
[MessageID] =>
[Host] => smtp.gmail.com
[Port] => 465
[Helo] =>
[SMTPSecure] => ssl
[SMTPAuth] => 1
[Username] => appmonkeydev@gmail.com
[Password] => ********
[Timeout] => 10
[SMTPDebug] =>
[SMTPKeepAlive] =>
[SingleTo] =>
[LE] =>
[smtp:PHPMailer:private] => SMTP Object
(
[SMTP_PORT] => 25
[CRLF] =>
[do_debug] =>
[do_verp] =>
[smtp_conn:SMTP:private] => Resource id #86
[error:SMTP:private] =>
[helo_rply:SMTP:private] => 250-mx.google.com at your service, [220.247.236.99]
250-SIZE 35882577
250-8BITMIME
250-AUTH LOGIN PLAIN XOAUTH XOAUTH2 PLAIN-CLIENTTOKEN
250-ENHANCEDSTATUSCODES
250-CHUNKING
250 SMTPUTF8
)
[to:PHPMailer:private] => Array
(
[0] => Array
(
[0] => azraarshu@gmail.com
[1] =>
)
)
[cc:PHPMailer:private] => Array
(
[0] => Array
(
[0] => yohan@appmonkeyz.com
[1] => Yohan Hirimuthugoda
)
[1] => Array
(
[0] => azraar@app-monkeyz.com
[1] => Azraar Azward
)
)
[bcc:PHPMailer:private] => Array
(
)
[ReplyTo:PHPMailer:private] => Array
(
[support@qelasy.com] => Array
(
[0] => support@qelasy.com
[1] =>
)
)
[all_recipients:PHPMailer:private] => Array
(
[azraarshu@gmail.com] => 1
[yohan@appmonkeyz.com] => 1
[azraar@app-monkeyz.com] => 1
)
[attachment:PHPMailer:private] => Array
(
)
[CustomHeader:PHPMailer:private] => Array
(
[0] => Array
(
[0] => Cc
[1] => Yohan Hirimuthugoda <yohan@appmonkeyz.com>
)
[1] => Array
(
[0] => Cc
[1] => Azraar Azward <azraar@app-monkeyz.com>
)
)
[message_type:PHPMailer:private] => plain
[boundary:PHPMailer:private] => Array
(
[1] => b1_631af702e0f737dd5c11dcff55e1d8ee
[2] => b2_631af702e0f737dd5c11dcff55e1d8ee
)
[language:protected] => Array
(
[provide_address] => You must provide at least one recipient email address.
[mailer_not_supported] => mailer is not supported.
[execute] => Could not execute:
[instantiate] => Could not instantiate mail function.
[authenticate] => SMTP Error: Could not authenticate.
[from_failed] => The following From address failed:
[recipients_failed] => SMTP Error: The following recipients failed:
[data_not_accepted] => SMTP Error: Data not accepted.
[connect_host] => SMTP Error: Could not connect to SMTP host.
[file_access] => Could not access file:
[file_open] => File Error: Could not open file:
[encoding] => Unknown encoding:
[signing] => Signing Error:
[smtp_error] => SMTP server error:
[empty_message] => Message body empty
[invalid_address] => Invalid address
[variable_set] => Cannot set or reset variable:
)
[error_count:PHPMailer:private] => 1
[sign_cert_file:PHPMailer:private] =>
[sign_key_file:PHPMailer:private] =>
[sign_key_pass:PHPMailer:private] =>
[exceptions:PHPMailer:private] => 1
)
)
从 Gmail 收到的电子邮件。
Hi appmonkey,
We recently blocked a sign-in attempt to your Google Account [appmonkeydev@gmail.com].
Sign in attempt details
Date & Time: Tuesday, August 26, 2014 9:23:38 AM UTC
Location: Colombo, Sri Lanka
If this wasn't you
Please review your Account Activity page at https://security.google.com/settings/security/activity to see if anything looks suspicious. Whoever tried to sign in to your account knows your password; we recommend that you change it right away.
If this was you
You can switch to an app made by Google such as Gmail to access your account (recommended) or change your settings at https://www.google.com/settings/security/lesssecureapps so that your account is no longer protected by modern security standards.
To learn more, see https://support.google.com/accounts/answer/6010255.
Sincerely,
The Google Accounts team
最佳答案
检查您的 Gmail/帐户和导入/其他 Google 帐户设置
Some apps and devices use less secure sign-in technology, which makes your account more vulnerable. You can turn off access for these apps, which we recommend, or turn on access if you want to use them despite the risks. Learn more
Access for less secure apps Turn off Turn on
改为“开启”
有同样的问题,但现在对我有用。
关于phpMailer电子邮件不发送gmail smtp,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25502393/
如何安装 phpMailer在共享托管环境中?我需要将其用于用户的电子邮件验证和密码更改。 最佳答案 您可以在这里下载:https://github.com/PHPMailer/PHPMailer 将
当我使用 phpmailer 通过 Gmail 发送时,电子邮件需要很长时间才能发送,而且有时发送不成功。我正在使用 XAMPP 作为本地主机。 这是我的代码: if($_POST['submit']
我正在使用 PHPMailer 发送一些简单的电子邮件,但是函数 SetFrom() 似乎不起作用,即使我使用的代码直接来自 phpmails 文档 ( http://phpmailer.worxwa
使用 PHP 邮件程序 6.0.6 版 我知道类似的问题得到了回答,但我的情况不同。 我已经成功配置了它运行良好的脚本;我正在接收邮件,然后突然之间没有任何变化,它开始向我抛出这个错误。 错误
我可以生成 pdf 以便轻松查看和下载。我正在尝试发送一封附有 pdf 的电子邮件。我已经连续几天浏览谷歌了几个小时,没有什么比这个链接更让我更接近了,sending an email attachm
我可以生成 pdf 以便轻松查看和下载。我正在尝试发送一封附有 pdf 的电子邮件。我已经连续几天浏览谷歌了几个小时,没有什么比这个链接更让我更接近了,sending an email attachm
由于错误,我无法收到确认电子邮件。这是我的 PhpMailer 错误。 fatal error :未捕获错误:在 C:\xampp\htdocs\Web\PHPMailer\PHPMailer.php
这个问题在这里已经有了答案: SMTP connect() failed PHPmailer - PHP (17 个答案) 关闭 7 年前。 这是我在网上引用了很多之后从本地主机发送电子邮件的代码。
我写了一个 PHP 脚本,可以发送邮件。我从“mail@something.com”发送它们并将“返回路径”设置为“bounce@something.com”,但我仍然收到退回邮件到发件人邮件(“ma
我使用 php curl() 函数从服务器 A 连接到邮件服务器 B 以发送邮件。 $body = "body\n\nmore body\nmore body\n\nmore body\n\n"; $
PHPMailer 只是在发送电子邮件时挂起。我逐行注释了所有代码,一切正常,直到到达 如果(!$邮件->发送()) 此时页面进入旋转状态 - 没有错误消息或任何其他错误指示。我想我拥有所有必需的
我在问这里之前阅读了一些其他问题,因为其他答案没有回应我的问题。 我有一个用 php 定制的 cms。例如,如果我插入一个新的付款,脚本会向所有管理员用户发送一个通知: function insert
我用 Ubuntu 和 DigitalOcean 构建了一个 droplet,我正在尝试将它配置为使用 SMTP 发送电子邮件。 我知道 DigitalOcean 通过 IPv6 而不是通过 IPv4
我是 PHP 的新手。我从这里下载了一个 phpmailer 脚本(带有文件)-> phpmailer 我正在使用 XAMPP,我将文件定位在: \htdocs\QMS\phpmailer 我的 ph
我这里有一个大问题! 我需要向所有订阅者发送时事通讯(大约 1200) 问题是它只将时事通讯发送给其中的 150-180。 我有一个在 php 中实现的脚本,它使用 PhpMailer() 类将时事通
是否可以使用phpmailer发送异步电子邮件? 常规邮件发送代码段如下: $mail->Send(); PHP在继续之前等待Send()返回结果。是否有可能使phpmailer立即返回结果,而无需等
我有这样一种情况,我发送了两封不同的电子邮件,一封给客户,另一封在成员接受任务后发送给成员。在函数中我调用了 2 个函数,一个发送给客户端,一个发送给成员。发生的情况是第二封电子邮件同时发送给成员(m
我正在使用 PHPMailer在我的网站上,但它返回一个错误: 您必须提供至少一个收件人电子邮件地址。 服务器正在运行 PHP 7。我查看了以下页面以寻找答案: PHP Mailer You must
我正在尝试配置 PHPMailer 我上传了 1 个文件,它是 class.phpmailer.php 并创建了另一个包含以下内容的 php 文件: IsSMTP(); // enable SMTP
使用 PHPMailer 向我的 Gmail 帐户发送电子邮件后,单击“邮件发送者”右侧的“显示详细信息”后,它会显示“yourhostingaccount.com”。这是一张图片: 我读过您可以使用
我是一名优秀的程序员,十分优秀!