我正在寻找一种方法来配置我的RHEL4机器上的wordpress发送电子邮件通知使用gnupg (sendmail)。
有谁能给我指个方向吗?
发布于 2010-07-21 20:28:05
WordPress使用自己的函数wp_mail()发送电子邮件。因为它是一个“可插拔”的函数,你可以在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.
}https://stackoverflow.com/questions/3297284
复制相似问题