Login  
Search All Forums
Dart Home | PowerTCP Mail for ActiveX | Custom Development Reply | PowerTCP Mail for ActiveX Topics | Forums   
AuthorForum: PowerTCP Mail for ActiveX
Topic: Forcing a Port to send email
karthiksp

From: West Palm Beach, FL USA
Posts: 60
Member Since: 08/04/05
posted November 5, 2007 10:41 AM

Hi,

  We are using DART SMTP Component to send email from our application. All along we were using SMTP Servername, UserID and Password to login to SMTP Client using the Port Number 0.

  Now we want the login method to force to a particular port. When we try the following command by forcing the port it gives the error as follows.

Command we tried

ole_Smtp.Object.Login('servername', 25, userid, password)

It gives the error as follows

"Error Description : An error occurred in the protocol."

If I use the same command using the port 0 then it is sending email successfully.

Could somone please help me, how can we fix this issue.

My sysadmin already cofirmed that this is port is configured correctly by sending email from Microsoft Outlook.

Any help is greatly appreciated

Thanks
Karthik
mrwise

From: New Ulm, MN USA
Posts: 7
Member Since: 06/07/04
posted November 5, 2007 12:01 PM

Are sending from an outside server or your own in-house Exchange server? I have only been using the control for a short time and I want to be able to send with our in-house Exchange server if possible but have not tried it yet.

Thanks and sorry this doesn't really help your question.

Mike
Amit

From: Rome, NY USA
Posts: 315
Member Since: 03/15/06
posted November 5, 2007 3:51 PM

Hello Karthik,

I have been able to use the same code snippet to login to a SMTP Server. By default, the remote port parameter defaults to 25 so what happens if you try this code snippet:

Smtp1.Login "Servername", , "Username", "Password"

Our control works both with in-house as well as outside server. However, if you are using Proxy Server in between then you also need to provide code for proxy settings.

Best Regards,
Amit
karthiksp

From: West Palm Beach, FL USA
Posts: 60
Member Since: 08/04/05
posted December 26, 2007 10:35 AM

Hi All,

Thanks for the reply and suggestions. I tried here with a particular port number and it is working now.

Thanks again
Amit

From: Rome, NY USA
Posts: 315
Member Since: 03/15/06
posted December 26, 2007 4:03 PM

Hello Karthik,

Thanks for updating us on the status of this issue.

Happy Holidays!!

Best Regards,
Amit
Reply | PowerTCP Mail for ActiveX Topics | Forums   
This site is powered by PowerTCP WebServer Tool PowerTCP WebServer for ActiveX