Configuration wordpress mail

Frog continue to shift the vps Today's theme is tuned wordpress send a message.

Before the in Dreamhost above, the mail system has been configured, wordpress does not require any settings you can directly send a message. Vps on the frog in order to save resources, is not installed on the mail server, so I want to send a message, you also need their own torment.
Frog is first of all think of a lightweight MTA configuration, for example msmtp and the like, and then modify the php.ini the sendmail_path parameter, so that it points to the msmtp. So that the php program has the capacity of mail, but such problems is the mail-sending server is fixed, and need to configure an account to do the login server, if a user want to use their own server to send certain messages, such a configuration can not be achieved.

In order to achieve the perfect solution, the frog they found in a circle, found that wordpress has been integrated one PHPMailer [1] class, and provides a wp_mail function [2] to send mail, set the SMTP plug-in [3] to facilitate We configure the SMTP server and outgoing mail account information.

Frogs chose the WP Mail SMTP plugin is very simple, fill out all the parameters, wordpress, you can send mail.

References:
[1] PHPMailer http://phpmailer.worxware.com/
[2] Function Reference / wp_mail http://codex.wordpress.org/Function_Reference/wp_mail
[3] allow WordPress to send mail via SMTP http://goto8848.net/2008/04/wordpress-mail-via-smtp/

About gfrog

gfrog, Coder. Canon 40D, Seagull 4B, Seagull 203, Blackberry 8100, Thinkpad, Debian Linux
This entry was posted in Linux and tagged , , . Bookmark the permalink .
  • http://www.killproblem.com linux systematic Technology Network

    Useful to learn, yes!

  • http://yusky.me Yusky

    Amount. Plug-ins do not want to.