php - 如何在wordpress中发送带附件的邮件?

标签 php wordpress email-attachments

现在我可以发送不带附件的电子邮件了:

wp_mail( $to, $subject, $message, $headers);

但是我怎样才能发送带附件的电子邮件呢?

最佳答案

 <?php wp_mail( $to, $subject, $message, $headers, $attachments ); ?> 

http://codex.wordpress.org/Function_Reference/wp_mail

关于php - 如何在wordpress中发送带附件的邮件?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4554664/

相关文章:

php - select 语句中的选项值

wordpress - Roots Theme 和 WooCommerce - 重复的标题

android - 将 imageView 附加到电子邮件

带有多个附件的电子邮件

asp-classic - ASP 发送带附件的电子邮件表单

php - 文本框输入,从数据库检索值,无需在php中提交按钮

php - 提交按钮不发送表单数据到 mysql - jquery 问题

php - 如何禁用 cPanel URL

php - 使用 htaccess 和正则表达式重写旧 URL

mysql - 更新 WordPress 数据库,更改 post_content 硬编码 URL