fmardani 0 Newbie Poster

Hi,
Trying to send an email through asp.net 2.0
Here is the error message. Any ideas please?
Does this mean that the mail exchange server that I have provided is incorrect?

"Unable to connect to the remote server"

Here is what I am basically doing:

' Configure mail client (may need additional
' code for authenticated SMTP servers)

Dim mailClient As New SmtpClient(ncspConfiguration.MailServer)

' Create the mail message

Dim mailMessage As New MailMessage(from, [to], subject, body)

' Send mail

mailClient.Send(mailMessage)

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.