我已经就这个问题做了自己的研究。但没有主题或论坛帮助我。所以我自己转发。 一切都在标题中。我正在为MAMP Pro的网站工作。我是OS el Capitan。我想用我的个人Gmail地址发送带有php的电子邮件。
我尝试了它的工作: 在Mamp Pro中: mamp-configuration
Main.cf: main.cf
sasl_MAMP_passwd:
smtp.gmail.com:587 myadress@gmail.com:mygmailcode
的php.ini:
[mail function]
; For Win32 only.
SMTP = localhost
smtp_port = 587
; For Win32 only.
;sendmail_from = me@example.com
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
;sendmail_path =
尝试发送电子邮件时出错:
Jun 4 14:38:04 xxxxx postfix/smtp[3825]: warning: connect to private/tlsmgr: Connection refused
Jun 4 14:38:04 xxxxx postfix/smtp[3825]: warning: problem talking to server private/tlsmgr: Connection refused
Jun 4 14:38:05 xxxxx postfix/smtp[3825]: warning: connect to private/tlsmgr: Connection refused
Jun 4 14:38:05 xxxxx postfix/smtp[3825]: warning: problem talking to server private/tlsmgr: Connection refused
Jun 4 14:38:05 xxxxx postfix/smtp[3825]: warning: no entropy for TLS key generation: disabling TLS support
Jun 4 14:38:05 xxxxx postfix/smtp[3825]: EB1DE2C897A: TLS is required, but our TLS engine is unavailable
Jun 4 14:38:05 xxxxx postfix/smtp[3825]: EB1DE2C897A: to=<myadress@gmail.com>, relay=smtp.gmail.com[XX.XXX.XXX.XXX]:587, delay=2.7, delays=1.1/1.1/0.51/0, dsn=4.7.5, status=deferred (TLS is required, but our TLS engine is unavailable)
已经过了1周,我努力为自己的工作做好准备。但不可能。谢谢你的帮助。