Want to send an attachment mail using wp_mail mail in WordPress? Use the following code to send an attachment mail using wp_mail mail.
// Send an attachment mail.
$attachments = array(ABSPATH . '/uploads/abc.png');
wp_mail($email, 'Testing Attachment' , 'This is subscription','This is for header',$attachments);
If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.