G
Guest
It seems I got stuck with interesting problem.
I'm trying to send email using System.Web.Mail and connecting to my mail on different server (not IIS Smtp Server).
Now my problem is, if I run my code in winforms application it works perfectly, but if i put exactly same code into my web application it gives me error saying it cant connect to server.
Now I thought if i impersonate account im logged in as, it would fix my problem, by using System.Security.Principal.WindowsIdentity.GetCurrent.Name i can see that my web application impersonated my account just fine, but it still hasnt fixed my problem.
Please can someone direct me where is my problem?
Best regards,
Dmitri.
I'm trying to send email using System.Web.Mail and connecting to my mail on different server (not IIS Smtp Server).
Now my problem is, if I run my code in winforms application it works perfectly, but if i put exactly same code into my web application it gives me error saying it cant connect to server.
Now I thought if i impersonate account im logged in as, it would fix my problem, by using System.Security.Principal.WindowsIdentity.GetCurrent.Name i can see that my web application impersonated my account just fine, but it still hasnt fixed my problem.
Please can someone direct me where is my problem?
Best regards,
Dmitri.