Hello, Sending email works OK as instructed in http://support.Winhost.com/KB/a650/how-to-send-email-in-aspnet.aspx. Now, question is, how can test sending email from the development environment using the email server of my site? Or is it possible at all? Special port number? Thanks, Tuomo
Sending an email doesn't work from my own PC. I had the same problem with my other hosting provider, the default port number 25 didn't work remotely. But then I got an other port number which works remotely (but not locally). In my code I'm using Request.IsLocal property to decide which port to use. That's how my code works regadless the whether I'm running my app from my own computer or from the hosted server. I wonder whether this kind arrangement goes with Winhost, too. Tuomo
hmm...i just tried sending mail from my development machine using the instructions on the first post and it works fine. send me a pm if u want my Mail.cs [class] file...
We really don't have enough information to help you solve this problem. Some sample codes posted on this thread will help and an exact copy of the error message will also help.
I think I tried port 587 earlier and it didn't work. Maybe I made a typing error. Anyway, I tried it again and it works OK. Thanks!