DateTime.Parse(mail.Headers(“Date”)).ToString(“ddMMyyyy”) = Now.ToString(“ddMMyyyy”) And mail.attachments.ToString.Contains(Config(“Hyundai_ICICI_Sub2”).ToString)
how to edit this so that i can check the attachment name with the same code then attachment should get downloaded to respective folder.
Yes it will take one by one attachment in the mail and check the Hyundai_ICICI_Sub2 present in the name of attachment or not. If you want to filter with pdf, image or any files. Let me know… @taruna.a