Results 1 to 2 of 2

Thread: Testing for email service/accounts on local machine

  1. #1

    Thread Starter
    Member
    Join Date
    Jul 2002
    Location
    Mesa, Arizona
    Posts
    45

    Testing for email service/accounts on local machine

    Hello all,

    I need to test to make sure a user, or the local machine, can send an email. I'm using the System.Web.Mail.Smtp namespace to send the email. I haven't found any properties or methods to test for email service. Anybody got any idea on how to solve this without using a Try Catch block.

    Matt

  2. #2
    Fanatic Member Redth's Avatar
    Join Date
    May 2001
    Location
    Ontario, Canada
    Posts
    551
    could use windows sockets to connect to the local machine on the smtp port... then the machine should refuse the connection or give some sort of error if it doesn't have a smtp server running...


    personally i'd just pick a mail server somewhere and code the program so it always sends with that server... that way the machine only needs a internet connection to send email..

    though some mailservers might not like you bouncing emails off of them...

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