Attachment throwing error

Hi @dpaktr

Try like this

 New System.Net.Mail.Attachment(Ctype(mailmessage.attachments.FirstorDefault, attachment).Name)

Checkout this thread

Regards
Sudharsan

1 Like