hi,
i m using asp.net 2.0. how can i send a mail through this using SYSTEM.NET.MAIL namespace.
i do not have smpt server address. i want to set smpt address as default .is this possible in asp.net 2000

prakash

it depends on your server or hosting but try "localhost" that often works if not check the relay restrictions in the default smtp virtual server properties in IIS on the Access tab. If its a hosting company you need to ask them what the smtp server address is.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.