Site icon Hip-Hop Website Design and Development

wp_mail doen’t send mails whit attachment

On my site I hava two forms witch send email. The one whit no attachment needed is sent correnctly, but the other ony witch has an attachment does not get sent. I am using SMTP config whit Postman SMTP plugin.

move_uploaded_file($_FILES["cv"]["tmp_name"],WP_CONTENT_DIR .'/uploads/CV/'.basename($_FILES['cv']['name']));
move_uploaded_file($_FILES["lm"]["tmp_name"],WP_CONTENT_DIR .'/uploads/lm/'.basename($_FILES['lm']['name']));

$attachments = array(
    WP_CONTENT_DIR ."/uploads/CV/".$_FILES["cv"]["name"],
    WP_CONTENT_DIR ."/uploads/lm/".$_FILES["lm"]["name"]
    );

this is the code I use for storeing and reaching the attachments and simpli useing the wp_mail function to send it like this:

$sent=wp_mail($s, $subject, $message, $headers,$attachments);

On the other form I am useing the same code just whitout the $attachments variable.
The one whitout attachements get sent but the other one does not.
Can anyone help me finx my problem?