Hi all,
I'm still pretty new to .net, so please bare with the vagueness of my post.
I've written a function that emails the content of a page that I scraped to an email recipient. I pass the url of the page I want to send and the email address of the person I'm sending it to. (See my code below.)
The problem that I'm having is this. I need the sender to be the Windows users email address, so I tried this - m.From = New MailAddress(My.User.Name.ToString.Split("\")(1) & "@mydomain.com")
If I have Enable anonymous access checked in IIS Directory Security, my function works, but I'm not able to get the Windows User Name. If I uncheck anonymous access, I'm able to get my Windows User name, but, I get this error and the email isn't sent. The remote server returned an error: (401) Unauthorized.
This one has both my co-worker and I pretty ...
Go to the complete details ...