|
-
Feb 27th, 2003, 11:41 AM
#1
Thread Starter
Member
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
-
Feb 27th, 2003, 04:17 PM
#2
Fanatic Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|