如何在Wordpress中发送带有附件的电子邮件? [英] How to send an email with attachment in wordpress?
本文介绍了如何在Wordpress中发送带有附件的电子邮件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
现在我可以发送不带附件的电子邮件了:
Now I can send an email without attachment :
wp_mail( $to, $subject, $message, $headers);
但是如何发送带有附件的电子邮件?
But how can I send an email with attachment?
推荐答案
<?php wp_mail( $to, $subject, $message, $headers, $attachments ); ?>
http://codex.wordpress.org/Function_Reference/wp_mail
这篇关于如何在Wordpress中发送带有附件的电子邮件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文