簡體   English   中英

OS X上的AMPPS Mail

[英]AMPPS Mail on OS X

我一直在OS X的10.9-10.11版(從小牛到El Capitan)上運行AMPPS(軟件AMPPS),並且從未配置任何電子郵件設置才能使PHP mail()函數正常工作。

這是我的php.ini的郵件部分:

[mail function]
    ; For Win32 only.
    ; http://php.net/smtp
    SMTP = localhost
    ; http://php.net/smtp-port
    smtp_port = 25

    ; For Win32 only.
    ; http://php.net/sendmail-from
    ;sendmail_from = me@example.com

    ; For Unix only.  You may supply arguments as well (default: "sendmail -t -i").
    ; http://php.net/sendmail-path
    ;sendmail_path =

    ; Force the addition of the specified parameters to be passed as extra parameters
    ; to the sendmail binary. These parameters will always replace the value of
    ; the 5th parameter to mail(), even in safe mode.
    ;mail.force_extra_parameters =

    ; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
    mail.add_x_header = On

    ; The path to a log file that will log all mail() calls. Log entries include
    ; the full path of the script, line number, To address and headers.
    ;mail.log =
    ; Log mail to syslog (Event Log on NT, not valid in Windows 95).
    ;mail.log = syslog

我的問題是,如何發送電子郵件,或者從哪里發送電子郵件? 我從未以任何方式配置AMPPS來發送電子郵件。 他們似乎只是工作。

我問的原因是,我正在嘗試在本地網絡服務器上設置AMPPS,但是即使使用我的gmail帳戶配置了smpt電子郵件設置,也無法發送電子郵件。

我發現OS X附帶了預安裝的后綴,這就是為什么我不需要為PHP設置SMTP設置的原因。

但是,由於我的PC問題,為避免更多麻煩,我只需在Windows本地服務器上安裝hMailServer,PHP mail()函數即可完美發送電子郵件。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM