2012-10-30 166 views
5

有没有人告诉我如何使用wordpress的wp_mail函数发送附件邮件? 我使用下面的代码,但它不工作如何使用wp_mail邮件发送附件邮件

$attachments = array(ABSPATH . '/uploads/abc.png'); 
wp_mail($email, 'Testing Attachment' , 'This is subscription',$attachments); 

感谢

回答

5

试试这个,让我然后知道 -

$attachments = array(ABSPATH . '/uploads/abc.png'); 
wp_mail($email, 'Testing Attachment' , 'This is subscription','This is for header',$attachments); 

您的附件设置为在这种情况下头。

+0

Thnx很多男人@swapnesh现在的工作,m感觉真的很开心:) –

+0

@ user1732209确定:) – swapnesh