Results 1 to 5 of 5

Thread: send email

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678

    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)

  2. #2
    Fanatic Member
    Join Date
    May 2005
    Posts
    608

    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.

  3. #3

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678

    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

  4. #4
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092

    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?

  5. #5

    Thread Starter
    Fanatic Member
    Join Date
    Dec 2002
    Location
    London
    Posts
    678

    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
  •  



Click Here to Expand Forum to Full Width