我正在寻找一种在我的 RHEL4 机器上配置 wordpress 以使用 gnupg (sendmail) 发送电子邮件通知的方法。
谁能指出我正确的方向?
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.
}