title: Attaching pdf with sendGrid not working in c#
body: <p>I have write a mail sending functionality using sendGrid in c#. It works properly but when attaching the generated pdf as attachement, it's not working.</p>
  
  <pre><code>var client = new SendGridClient(apiKey);
  var msg = new SendGridMessage()
  {
      From = new EmailAddress(senderMailID, senderName),
      Subject = "ABCD",
  
  };
  
  var attach = new Attachment();
  attach.Filename = "ABC.pdf";
  attach.Content = "~/Templates/output.pdf";
  
  msg.AddAttachment(attach);
  
  msg.AddTo(new EmailAddress(receiverMailID,receiverName));
      var result = await client.SendEmailAsync(msg);
  
  }
  </code></pre>