I have below code to send email with attachment. Code is working, but only if file is in same root as project files.
But, I need that for example I can choose test.jpg from any path, like D:\test.jpg
Dim NewAttachment As Attachment = New Attachment(Server.MapPath("test.jpg"))
Thanks in advance for help.