Sendmail 和 gnupg

发布于 2024-09-10 21:54:53 字数 94 浏览 0 评论 0原文

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

有人能指出我正确的方向吗?

I am looking for a way to configure wordpress on my RHEL4 machine to send out email notifications using gnupg (sendmail).

Can anyone point me in the right direction?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

毁我热情 2024-09-17 21:54:54

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.
}

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.
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文