0

我正在寻找一种在我的 RHEL4 机器上配置 wordpress 以使用 gnupg (sendmail) 发送电子邮件通知的方法。

谁能指出我正确的方向?

4

1 回答 1

0

WordPress 使用它自己的功能wp_mail()来发送电子邮件。由于它是一个“可插入”功能,您可以在WordPress 插件中使用您自己的版本覆盖它;

/**
 * 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.
}
于 2010-07-21T12:28:05.183 回答