Search The ForumSearch   RegisterRegister  LoginLogin

MailBee SMTP

 AfterLogic Forum : MailBee SMTP
Subject Topic: Not able to connect to SMTP server Post ReplyPost New Topic
Author
Message << Prev Topic | Next Topic >>
Amit021081
Newbie
Newbie
Avatar

Joined: 25 October 2010
Location: India
Online Status: Offline
Posts: 1
Posted: 25 October 2010 at 10:00pm | IP Logged Quote Amit021081

I am using trial version of Mailbee.SMTP , on trying to connect to SMTP server I am getting the following error.

10:12:59 [Connecting to server localhost at port 25 using default domain]
10:13:00 [Error: Socket.Connect returned code -5]
10:13:00 [Error: Connection failure]

Code:

ISMTPPtr pMailer("MailBee.SMTP");
(*pMailer).LogFilePath     = "D:\\VCMAIL\\log.txt";
(*pMailer).EnableLogging     = TRUE;
(*pMailer).ClearLog();
(*pMailer).ServerName      &nb sp;   = "172.32.16.85" ;
(*pMailer).AuthMethod      &nb sp;   = 0;
if ((*pMailer).Connect()) {
printf("Connected") ;
return 0;
} else {
printf("Not Connected") ;
return -1;
}
Back to Top View Amit021081's Profile Search for other posts by Amit021081
 
Igor
AfterLogic Support
AfterLogic Support


Joined: 24 June 2008
Location: United States
Online Status: Offline
Posts: 6107
Posted: 26 October 2010 at 1:06am | IP Logged Quote Igor

You'll probably need to recheck your code; according to the log file, supplying mail server address didn't work, MailBee still tries connecting to localhost and looks like there's no mailserver running there.

--
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