I am coding in C# with .Net. I am trying to send an email with a PDF attachment. My current problem is that I don't know how to get the PDF from my local computer to send with the email.
Am I supposed to use the location of my computer in the (@"d:\1.txt"
) portion of the code?
this is the code I currently have
MailMessage msg = new MailMessage();
Aspose.Email.Attachment attachment;
attachment = new Aspose.Email.Attachment(@"d:\1.txt");
msg.Attachments.Add(attachment);