-
send email
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)
-
Re: send email
Looks good man.
Looks connectivity to me.
Is the exchange server open to the web? or it's an internal server? are you connecting to it via a local LAN? or via internet? basically, it's open to the web? It's the right port? Did you try the email server with some email client? Are you positive the server works?
HoraShadow
-
Re: send email
Hi,
I do have outlook on my machine and can send emails.
My local machine is where I am developing this .net 2.0 site
I can send emails to the outside of the office too.
Hope this answers some of your questions.
Not sure what to look for to send emails now.
Thanks
-
Re: send email
Having outlook and being able to send emails is a seperate issue to having a mail server running.
Are you using IIS as a mail server?
What is the value of ncspConfiguration.MailServer?
-
Re: send email
that is the ip address for the mail exchange server
Thanks