is there a possibility to attach a file in an email, and put it as a link inside the body of mail?
// email body
string emailText = "Attachment file is: <a href="???">Here</a>";
//mail message
MailMessage mailMessage = new MailMessage
{
From = new MailAddress("from", "from"),
Subject = "Subject",
IsBodyHtml = true,
Body = emailText
};
// here is my attachment
Attachment attachment = new Attachment(object, MediaTypeNames.Application.Pdf);
mailMessage.Attachments.Add(attachment)
is there a solution to include attachment inside the body as a link?