1. Shaji Markose
  2. PowerBuilder
  3. Thursday, 2 February 2023 17:32 PM UTC

Hi,

 

I am trying to use pbnismtp libraries to send emails from my PB application. The sample application from Roland's site worked fine for me. However I am getting wrong runtime error when using n_cpp_smtp and n_pbnismtp (32 bit). I would appreciate if anybody can help me with that.

The error happened with the following call.

ln_smtp.SetSMTPServer(ls_server)

 

Thanks

Shaji

Roland Smith Accepted Answer Pending Moderation
  1. Thursday, 2 February 2023 19:38 PM UTC
  2. PowerBuilder
  3. # 1

Do you have the .pbx file somewhere where the app can use it?

Comment
  1. Miguel Leeuwe
  2. Thursday, 2 February 2023 20:58 PM UTC
I don't know what values yoiu are using, but in the past "smtp.outlook365.com" has worked for me as the smtp server. Now I have to use "smtp.outlook.com". So without the "365" for some funny reason.

In combination with port 587, that allows me to send email through outlook, using TLS.

Also, I'm not sure, but your HTML doesn't really look like it's valid html. (maybe it works for email, so I'm not sure).

regards.
  1. Helpful
  1. Shaji Markose
  2. Thursday, 2 February 2023 22:24 PM UTC
The html part in the script is not correct, that is a mistake from the cut and paste. SetSMTPServer function is failing. Even failed with "smtp.outlook.com"
  1. Helpful
  1. Shaji Markose
  2. Thursday, 2 February 2023 22:31 PM UTC
Hi Roland,

The pbnismtp.pbx is in the folder with exe file. I may try to copy it in the runtime as well.

Thanks

Shaji
  1. Helpful
There are no comments made yet.
Shaji Markose Accepted Answer Pending Moderation
  1. Thursday, 2 February 2023 22:59 PM UTC
  2. PowerBuilder
  3. # 2

Hi Roland,

The pbnismtp.pbx is in the same folder where the exe file is. 

Thanks

Shaji

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Friday, 3 February 2023 08:16 AM UTC
  2. PowerBuilder
  3. # 3

Hi,

How old is the "sample application from Roland" that you are using? Maybe check out his web site and get the latest version.

HIH.

Comment
  1. Roland Smith
  2. Friday, 3 February 2023 13:55 PM UTC
May 11, 2022.
  1. Helpful
There are no comments made yet.
Shaji Markose Accepted Answer Pending Moderation
  1. Friday, 3 February 2023 14:52 PM UTC
  2. PowerBuilder
  3. # 4

I down loaded it on January 30, 2023. I think it's related to the registry. For a try I just included Roland's sample application (including screens) in my application then run Roland's application from my application, then I am able to send email from my function. I don't know how that work. Help appreciated. I am pretty new to PB

What are the components I have to include in my application to use the pbnismtp.

 

Thaks

Shaji

Comment
There are no comments made yet.
  • Page :
  • 1


There are no replies made for this question yet.
However, you are not allowed to reply to this question.