If i have an email which has 2-3 different attachment like .xlsx, .pdf, .doc and if i want to download only specific attachment like the one with .pdf.
How can i do that ??
If i have an email which has 2-3 different attachment like .xlsx, .pdf, .doc and if i want to download only specific attachment like the one with .pdf.
How can i do that ??
@Harshad_Jadhav use ForEach item in MailMessage and use if condition as follow
If item.Attachments.Tostring.Contains(“pdf”)
{
//downlaod pdf
}