Author |
|
stevewhite Newbie
Joined: 28 May 2008 Location: United States
Online Status: Offline Posts: 6
|
Posted: 23 December 2010 at 10:21am | IP Logged
|
|
|
I am having trouble setting my LocalEndPoint for Direct Send.
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: 6104
|
Posted: 24 December 2010 at 6:48am | IP Logged
|
|
|
What's the exact problem you are having with this code? The more details you supply the better.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6104
|
Posted: 24 December 2010 at 6:53am | IP Logged
|
|
|
By the way, seems like creating a socket and binding it is unnecessary, MailBee should do that itself.
--
Regards,
Igor, AfterLogic Support
|
Back to Top |
|
|