Gustav Brock 
      Gustav at cactus.dk
      
      Fri Aug 28 05:18:22 CDT 2009
    
Hi John et al
If you wish to test sending of e-mail without actually sending it, you'll need a dummy SMTP server or a mock.
I found a very simple one (or rather the C# code to build one) here:
  http://geekswithblogs.net/imilovanovic/archive/2004/09/27/11783.aspx 
Call it like this:
  SmtpMock smtpServerMock = new SmtpMock ();   
  smtpServerMock.Start();  
  System.Web.Mail.SmtpMail.SmtpServer = "localhost";   
  System.Web.Mail.SmtpMail.Send("somebody at foo.com", "everybody at bar.com", "This is the subject", "This is the body.");  
  smtpServerMock.Stop ();
It keeps the log in SessionProtocol.
I'll test this at a later occasion.
/gustav
-----Original Message-----
From: dba-vb-bounces at databaseadvisors.com 
[mailto:dba-vb-bounces at databaseadvisors.com] On Behalf Of jwcolby
Sent: Monday, August 24, 2009 5:27 PM
To: VBA
Subject: [dba-VB] FTP and email in .Net
I am looking (Google) for how to ftp and email in .Net and am not finding anything.  Is this "built in" or otherwise readily available?
-- 
John W. Colby
www.ColbyConsulting.com