Author |
|
Amit021081 Newbie
Joined: 25 October 2010 Location: India
Online Status: Offline Posts: 1
|
Posted: 25 October 2010 at 10:00pm | IP Logged
|
|
|
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 |
|
|
Igor AfterLogic Support
Joined: 24 June 2008 Location: United States
Online Status: Offline Posts: 6107
|
Posted: 26 October 2010 at 1:06am | IP Logged
|
|
|
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 |
|
|