I am wondering what are the default server address and port number that are used in VS .Net 2003. I am porting an application and i can't that information anywhere. I know it's specified in code or web.config in VS 2005.
Also, when i run the application and send email through it, it works even when port 25 (local SMTP server is running on) is blocked?? How is that possible? I also received the mail fine.
Thank you for your help.
Flintronics:I am wondering what are the default server address and port number...
This is entirely dependent on your setup, there are no defaults. The customary port is 25, and the IP address is whatever IP address your SMTP server uses. Contact you mail admin for help with these.
Please: Don't forget to click "Mark as Answer" on the post that helped you. That way future readers will know which post solved your issue.
Hello, the SMTP server is hosted on the same computer as the application. Will the .net 2003 just use those? Port and server name (IP) doesn't need to be explicitly specified?
In VS 2005, it won't let you compile without specifying the server name in the code. Thanks for you reply, btw.
If we don't specify the SMTP server, the name of the local SMTP server is used. We can use SmtpMail.SmtpServer to set SMTP server in code (http://msdn.microsoft.com/en-us/library/system.web.mail.smtpmail.smtpserver(VS.71).aspx).
If your SMTP server is behind a firewall that blocks any direct SMTP traffic (through port 25), you'll need to find out if there is a smart host available on your network that is allowed to relay all SMTP messages to the Internet. For more information, see http://www.microsoft.com/technet/archive/itsolutions/ecommerce/deploy/d5smtp.mspx?mfr=true
I look forward to hearing from you.
Microsoft Online Community Support
Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question.