title: Sending amazon uploaded file as an attachment in smtp client c#
body: <p>I have uploaded a file on amazon bucket. </p>
  
  <p>How can i send that file as an attachment using <code>SmtpClient</code> in c#. </p>
  
  <p><strong>Below is my code snippet</strong></p>
  
  <pre><code> SmtpClient client = new SmtpClient();
   MailMessage msg = new MailMessage();
  
   msg.Attachments.Add(new Attachment("https://......."));
   client.Send(msg);
  </code></pre>
  
  <p><strong>it throws an exception says url is not supported.</strong></p>