日期:2014-05-17  浏览次数:20397 次

在php里从本地通过msmtp发送邮件

参看http://www.absolutelytech.com/2010/07/18/howto-send-emailsusing-mail-function-from-localhost-in-php-through-msmtp-using-gmail-account-on-linux/?的步骤:

?

?

Step by step instructions:

?

  1. First of all, follow this tutorial:
    Install msmtp on your linux box and configure it to work with Gmail.

    ?

    Msmtp is highly configurable and you can easily configure it to work with any smtp server. If you wish to use any other service with msmtp, you may?read its manual?and configure it.
    Proceed to next step only if you have successfully configured and are able to send a test message.

  2. Open php.ini in your text editor.
    sudo gedit /etc/php5/apache2