2012-10-30 60 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