我无法在php7.3中使用mail()发送电子邮件-它返回true但是sendmail不起作用。
- 操作系统中心8
- 后缀和发送邮件:已安装并正在运行
- 使用Sendmail发送的邮件:没有错误(如下所示),但没有电子邮件-包括垃圾邮件文件夹php. INI SMTP = mail.levaweb.com
- AAPanel:已安装-从此处发送电子邮件工作正常
我看过这些帖子:
Troubleshooting PHP Mail
https://netcorecloud.com/tutorials/sendmail-in-php-complete-guide/
- 测试- SSH*
echo "Subject: sendmail test" | sendmail -v myemail@gmail.com
220 server1.levaweb.com ESMTP Postfix
>>> EHLO server1.levaweb.com
250-server1.levaweb.com
250-PIPELINING
250-SIZE 102400000
250-VRFY
250-ETRN
250-STARTTLS
250-AUTH PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250-SMTPUTF8
250 CHUNKING
>>> STARTTLS
220 2.0.0 Ready to start TLS
>>> EHLO server1.levaweb.com
250-server1.levaweb.com
250-PIPELINING
250-SIZE 102400000
250-VRFY
250-ETRN
250-AUTH PLAIN LOGIN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250-DSN
250-SMTPUTF8
250 CHUNKING
>>> MAIL From:<root@server1.levaweb.com> SIZE=23 AUTH=root@server1.levaweb.com
250 2.1.0 Ok
>>> RCPT To:<myemail@gmail.com>
>>> DATA
250 2.1.5 Ok
354 End data with <CR><LF>.<CR><LF>
>>> .
250 2.0.0 Ok: queued as 4CB6C40096
myemail@gmail.com... Sent (Ok: queued as 4CB6C40096)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 Bye
谢谢你
1条答案
按热度按时间wz8daaqr1#
通过安装rainloop web服务器,我找到了一条出路。