2
我正在使用XAMPP for Mac,並且似乎郵件功能不起作用。我試過用sendmail改用SMTP(gmail)而沒有運氣。現在,我的php.ini的樣子:獲取XAMPP PHP郵件功能在OS X中工作
[mail function]
SMTP = smtp.gmail.com
smtp_port = 465
smtp_ssl=auto
auth_username=[user]@gmail.com
auth_password=[pass]
sendmail_from=[user]@gmail.com
如果我做 「尾-f /var/log/mail.log」:
Oct 20 18:07:48 mymac postfix/master[17166]: daemon started -- version 2.5.5, configuration /etc/postfix
Oct 20 18:07:48 mymac postfix/pickup[17168]: 6E89FCA7960: uid=-2 from=<nobody>
Oct 20 18:07:48 mymac postfix/cleanup[17170]: 6E89FCA7960: message-id=<[email protected]>
Oct 20 18:07:48 mymac postfix/pickup[17168]: 736D7CA7961: uid=-2 from=<nobody>
Oct 20 18:07:48 mymac postfix/cleanup[17170]: 736D7CA7961: message-id=<[email protected]>
Oct 20 18:07:48 mymac postfix/qmgr[17169]: 6E89FCA7960: from=<[email protected]>, size=310, nrcpt=1 (queue active)
Oct 20 18:07:48 mymac postfix/qmgr[17169]: 736D7CA7961: from=<[email protected]>, size=417, nrcpt=1 (queue active)
Oct 20 18:08:19 mymac postfix/smtp[17174]: connect to ASPMX.L.GOOGLE.com[209.85.227.27]:25: Operation timed out
Oct 20 18:08:19 mymac postfix/smtp[17176]: connect to ASPMX.L.GOOGLE.com[209.85.229.27]:25: Operation timed out
任何人都設法讓PHP的mail()函數在XAMPP for Mac中工作?我不在乎SMTP,sendmail,不管。用盡想法...