title: WP_MAIL() not sending attachments
body: <p>I am working on one plugin in which I need to send email with attachment(s). I have tried with below code but its not working for me. Its sending email but without attachment. Please guide me if I am doing anything wrong.</p>
  
  <p>attachment array is as below : </p>
  
  <blockquote>
    <p>[attachments] => Array (
        [0] => <a href="https://www.xxxx.com/wp-content/uploads/2019/02/test.docx" rel="nofollow noreferrer">https://www.xxxx.com/wp-content/uploads/2019/02/test.docx</a> )</p>
  </blockquote>
  
  <p>NOTE : I have checked that attachment file has 644 file permission. </p>
  
  <blockquote>
    <p>$attachments = array(); if(isset($email['attachments']) &amp;&amp;
    count($email['attachments'])>0){
        $attachments = $email['attachments']; }</p>
    
    <p>$headers = array();</p>
    
    <p>$headers[] = 'Content-Type: text/html; charset=UTF-8';</p>
    
    <p>$headers[] = 'From: ' . $from_name . ' &lt;' . $from_address . '>';</p>
    
    <p>if(isset($email['reply_name']) &amp;&amp; isset($email['reply_to'])){</p>
  
  <pre><code>$headers[] = 'Reply-To: ' . $email['reply_name'] . ' &lt;' . $email['reply_to'] . '&gt;';
  </code></pre>
    
    <p>}elseif(isset($email['reply_to'])){</p>
  
  <pre><code>$headers[] = 'Reply-To: &lt;' . $email['reply_to'] . '&gt;';
  </code></pre>
    
    <p>}</p>
    
    <p>wp_mail($email['recipients'], $email['subject'], $email['content'],
    $headers, $attachments);</p>
  </blockquote>
  
  <p>Thank you in advance.</p>