Search The ForumSearch   RegisterRegister  LoginLogin

MailBee.NET Objects

 AfterLogic Forum : MailBee.NET Objects
Subject Topic: LocalEndPoint Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
stevewhite
Newbie
Newbie


Joined: 28 May 2008
Location: United States
Online Status: Offline
Posts: 6
Posted: 23 December 2010 at 10:21am | IP Logged Quote stevewhite

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 View stevewhite's Profile Search for other posts by stevewhite
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 24 December 2010 at 6:48am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6104
Posted: 24 December 2010 at 6:53am | IP Logged Quote Igor

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 View Igor's Profile Search for other posts by Igor
 

If you wish to post a reply to this topic you must first login
If you are not already registered you must first register

  Post ReplyPost New Topic
Printable version Printable version

Forum Jump

Powered by Web Wiz Forums version 7.9
Copyright ©2001-2004 Web Wiz Guide