| Author |  | 
      
        | stevewhite Newbie
 
  
 
 Joined: 28 May 2008
 Location: United States
 Online Status: Offline
 Posts: 6
 | 
          I am having trouble setting my LocalEndPoint for Direct Send.
           | Posted: 23 December 2010 at 10:21am | IP Logged |   |  
           | 
 |  
 I have tried a couple different ways, but my latest looks like this.
 
 address = IPAddress.Parse(_ipAddress);
 var ipEndPoint = new IPEndPoint(address, 25);
 var socket = new Socket(ipEndPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp);
 socket.Bind(ipEndPoint);
 smtp.DirectSendDefaults.LocalEndPoint = ipEndPoint;
 
 Thanks,
 Steve
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          What's the exact problem you are having with this code? The more details you supply the better.
           | Posted: 24 December 2010 at 6:48am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | Igor AfterLogic Support
 
  
 
 Joined: 24 June 2008
 Location: United States
 Online Status: Offline
 Posts: 6168
 | 
          By the way, seems like creating a socket and binding it is unnecessary, MailBee should do that itself.
           | Posted: 24 December 2010 at 6:53am | IP Logged |   |  
           | 
 |  
 --
 Regards,
 Igor, AfterLogic Support
 | 
       
        | Back to Top |     | 
       
       
        |  |