Hi All,
Below the Solution i have used from converting the ps1 script to vb.net script
However as mentioned by @Lipika_Porey there are many ways to achieve this
Attached the below vb.net script for you Reference
email_part.zip (103.1 KB)
Regards
Sanjay