开发者

Sendmail and gnupg

I am looking for a way to configure wordpress on my RHEL4 machine t开发者_运维知识库o send out email notifications using gnupg (sendmail).

Can anyone point me in the right direction?


WordPress uses it's own function wp_mail() to send out emails. Since it is a 'pluggable' function, you can override it with your own version in a WordPress plugin;

/**
 * Plugin Name: GNUPG Mail
 * Description: Send mail using GNUPG.
 */

function wp_mail($to, $subject, $message, $headers = '', $attachments = array())
{
    // use the PHP GnuPG library here to send mail.
}
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜