title: Email -- what is the correct to wrap the "a href" link in email message?
body: <p>I am trying to set the mail body to display the links in email for the user to download pdf in case if they need to download again in future. It is not html body as it doesn't work on most email showing html codes. So I decide on plain text for email instead. </p>
  
  <pre><code>  $umessage .='&lt;a href="'.home_url('/download.php?f=pdffiles/'.$filename).'"&gt;&lt;a href="'.home_url('/download.php?f=pdffiles/'.$filename).'"&gt;'.$title.'&lt;/a&gt;';
         }}
  </code></pre>
  
  <p>What is wrong with single quotes? It displays in email:</p>
  
  <pre><code>&lt;a href="http://localhost/download.php?.............."&gt;file name&lt;/a&gt;
  </code></pre>
  
  <p>I don't think double quote will help, right?</p>
  
  <p><strong>EDIT #2</strong></p>
  
  <pre><code>$headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"
  </code></pre>
  
  <p>seems that it won't work well in any email application except apple mail. </p>
  
  <p>Any idea on that or maybe it is incorrect?</p>
  
  <p><strong>EDIT #3</strong></p>
  
  <pre><code>$umessage = "Thank you for downloading pdf. \r\n\r\n";
          $umessage .=    "Please click on the link below to download\r\n";
            if(count($selectfiles)&gt;0)
          {
              foreach($selectfiles as $key)
              {
                  $keyArray = explode('@',$key);
  
                  $filename = $keyArray[1];
  
                  $title = $keyArray[0];
  
        $umessage .='&lt;p&gt;Download '. '&lt;a href="'.home_url('/download.php?f=pdffiles/'.$filename).'"&gt;&lt;a href="'.home_url('/download.php?f=pdffiles/'.$filename).'"&gt;'.$title.'&lt;/a&gt;&lt;/p&gt;';
  
  }}
  
          $fm ='xxxx';
          $to='xxx';
  
          $subject = "Download Request from ". $name;
          $headers .= 'MIME-Version: 1.0' . "\r\n";
          $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; 
          $headers .= 'From:&lt;'.$fm.'&gt; ' . "\r\n" . 'Reply-To: ' . $to;
  
          $uto      = $email;
          $usubject = "Thank you for Downloading our PDF";
  
          wp_mail($to, $subject, $message, $headers);
          wp_mail($uto, $usubject, $umessage, $headers);
  </code></pre>