|
-
Apr 26th, 2006, 03:39 AM
#1
Thread Starter
Fanatic Member
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)
-
Apr 26th, 2006, 03:45 AM
#2
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
I do like the reward system. If you find that my post was useful, rate it.
-
Apr 26th, 2006, 04:15 AM
#3
Thread Starter
Fanatic Member
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
-
Apr 26th, 2006, 04:34 AM
#4
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?
-
Apr 26th, 2006, 04:44 AM
#5
Thread Starter
Fanatic Member
Re: send email
that is the ip address for the mail exchange server
Thanks
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|