I am trying to attach PDF document to MailMessage Send method in Windows Form Application. I am using below code to attach document to email.
mail.Attachments.Add(new Attachment(@"c:\Files\churchapplication.pdf"));
Email is not generated and no exception is raised either so i am unable to troubleshoot the problem. Same code works if I attach text file instead of pdf. So what could be the issue? Any ideas? PDF file size 291 KB. Is there some restrictions with attaching PDF documents in .NET?
Thanks.