嗨,亲爱的,我在用gmail从xampp (本地主机)发送电子邮件时遇到了问题,这是我的php.ini code==
[mail function]
SMTP=smtp.gmail.com
smtp_port=587
sendmail_from = mail@gmail.com
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"这是我的sendmail.ini
smtp_server=smtp.gmail.com
smtp_port=587
error_logfile=error.log
debug_logfile=debug.log
auth_username=arodana5000@gmail.com
auth_password= my password
force_sender=当我运行PHP文件发送邮件时,它将创建新的崩溃文件。这是坠机,请打开它,文件,请帮我
或者看那里
**>日期/时间: 2020-10-29,14:17:59,963 17
计算机名称: MSI用户名: Aro dana注册所有者: Aro dana操作系统: Windows NT New x64 build 9200系统语言:英语系统启动时间:4天14小时程序启动时间: 845毫秒处理器:12 x Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz物理内存: 6920/16228 MB (空闲/总)空闲磁盘空间:(C:) 9.56GB (D:) 601.37 GB显示模式: 1536x864,32位进程id:$20b4分配内存:22.45MB可执行文件: sendmail.exe exec。日期/时间: 2012-04-16 20:30编译: Delphi 2006/07 madExcept版本: 3.0l调用堆栈crc:$1d5da2f6,$c8f19877,$c8f19877异常号:1个异常类: EIdSocketError异常消息:套接字错误# 11001主机未找到。主线程($36 13):00435e23 +0073 sendmail.exe IdStack 706 +42 TIdStack.RaiseSocketError 00433faf +0123 sendmail.exe IdStackWindows 1227 +55 TIdStackWindows.HostByName 00435a75 +006d sendmail.exe IdStack 571 +10 TIdStack.ResolveHost 00440a70 +00fc sendmail.exe IdIOHandlerStack 314 +23 TIdIOHandlerStack.ConnectClient 0046554d +0031 sendmail.exe IdSSLOpenSSL 2086 +8 TIdSSLIOHandlerSocketOpenSSL.ConnectClient 00444a9f +0063 sendmail.exe IdIOHandlerSocket 335 +13TIdIOHandlerSocket.Open 00465637 +0007 sendmail.exe IdSSLOpenSSL 2122 +1 TIdSSLIOHandlerSocketOpenSSL.Open 0044157d +0235 sendmail.exe IdTCPClient 318 +53 TIdTCPClientCustom.Connect 00445cc8 +00a4 sendmail.exe IdExplicitTLSClientServerBase 257 +23 TIdExplicitTLSClient.Connect 0045ab7b +0017 sendmail.exe IdSMTP 373 +2 TIdSMTP.Connect 004b5f14 +1060 sendmail.exe sendmail 808 +326初始化77036357 +0017 KERNEL32.DLLBaseThreadInitThunk线程$5414: 77036357 +17 KERNEL32.DLL BaseThreadInitThunk线程$7080: 77036357 +17 KERNEL32.DLL BaseThreadInitThunk线程$6164: 77036357 +17 KERNEL32.DLL堆栈转储: 0019fc58 28 5e 43 00 de fa ed 0E-01 00 00 07 00 00 00 (^C.0019fc686c fc 19 00 28 5e 43 00 - 08 cc 45 02 ec 28 43 00 l.(^C.E.(C.0019 fc78 30 50 45 02 f9 2a 00 - a8 fc 19 00 88 fc 19 00 0 0 0PE.)b0 fc 19 00 c8 4b 40 00 - a8 fc 19 00 00 00 .....K@.0019fc980000000000000000- f9 2a 0030504502 .........*..0PE。0019fca 8 f4 fc 19 00 b2 3f 43 00 - 1c fd 19 00 c8 4b 40 00 .....?C......K@。0019fcb8 f4 fc 19 0044 fd 19 00 - 4b 02 00 ec 28 43 00 ....D...K.(C.0019fcc 8 00 00 00 - 02 00 00 00 -02 00 00 01 00 00 .)0019 8 00 00 00 - 00 00 00 .0019 fce8 00 00 00 10 fd 19 00 .0019 ff 8 77 5a 43 00 3c fd 19 00 - 00 00 ff 00 wZC.<.0019fd08 a8 a9 46 02 30 50 45 02 - 48 fd 19 00 75 0a 44 00 ..F.0PE.H...u.D. 0019 fd 18 3c fd 19 00 50 fd 19 00 - c8 4b 40 00 48 fd 19 00 <.P.K@.h.0019 fd 28 14 3f 41 00 b0 f4 3e 02 - b0 f4 3e 02 90 69 44 02 .?A...>...>..iD。0019fd3800000000000000000000 b0 f4 3e02 ..............>.0019fd 48 64 fd 19 00 52 55 46 00 - 78 fd 19 00 c8 4b 40 00 d...RUF.x....K@。b0 f4 3e 02 ac fd 19 00 d....?A...>.0019 fd 68 a5 4a 44 00 b0 f4 3e 02 - 3c 56 46 00 83 15 44 00 .JD...>.。拆卸:. 00435e13 push eax 00435e14 mov ecx,ebp-8 00435e17 mov dl,1 00435e19 mov eax,$4352 dl 00435e1e call -$717 ($43570c);IdStack.EIdSocketError.CreateError 00435e23 > call -$3113c ($404 ecx);@RaiseExcept 00435e28 707 xor eax,eax 00435e2a pop edx 00435e2b pop ecx 00435e2c pop ecx 00435e2d mov fs:eax,edx ...**
发布于 2020-10-29 22:04:07
在谷歌帐户中,你必须禁用第三方应用程序的安全性,以便通过该帐户发送电子邮件。或者创建特殊的应用程序密码,否则谷歌将不允许你发送电子邮件。https://support.google.com/accounts/answer/185833?hl=en
发布于 2020-10-29 22:15:21
症状
存在连接到远程主机的问题:
当您检查主机日志时,会看到以下错误:Socket Error # 11001 Host not found.(EIdSocketError)
致
此问题适用于Internet-ID连接。当使用此连接类型时,程序将与网络上的中间服务器进行通信--取决于您的设置--这可以是我们的公共服务器,也可以是您维护的自托管服务器。
此错误可能意味着由于以下原因之一,远程主机不可用:
若要解决此问题,请按列出的顺序尝试以下解决方案。
步骤1
清除安装主机的计算机上的DNS缓存(以下步骤适用于Windows 10):
步骤2
如果您使用我们的公共Internet服务,请确保id.remoteutilities.com的主服务器可以从主机PC访问,并且服务器的IP地址可以被成功解析。
发布于 2020-10-29 22:20:09
您需要允许在您的google帐户上使用其他应用程序,因为您的帐户不允许使用未定义的应用程序请求。Gmail应用程序允许允许
https://stackoverflow.com/questions/64599787
复制相似问题