1. Larry Langford
  2. PowerBuilder
  3. Tuesday, 29 September 2020 21:47 PM UTC

We've successfully used n_cpp_smtp to send emails from PB2017 applications,
but we've recently added a new customer for which it doesn't work.
We suspect an issue with the SetAuthMethod or SetConnectionType functions.
The argument to both is an integer, but we can't find documentation for what the values represent.
We're using '0'. Any information regarding the functionality of n_cpp_smtp would be greatly appreciated.

Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 30 September 2020 13:36 PM UTC
  2. PowerBuilder
  3. # 1

If you are using my version (https://www.topwizprogramming.com/pbnismtp.html) then the values are in the instance variables of n_pbnismtp which inherits from n_cpp_smtp.

They are constants so you can refer to them by name and won't need to know the actual values.

Comment
There are no comments made yet.
Larry Langford Accepted Answer Pending Moderation
  1. Wednesday, 30 September 2020 13:24 PM UTC
  2. PowerBuilder
  3. # 2

Thanks for the input!  The 'n_cpp_smtp' utility is the same that Bruce developed (and Roland updated).  We're suspicious of the port, but wanted to verify the other settings.  I was hoping to get more info about the arguments for SetAuthMethod or SetConnectionType to make sure we were using the correct option.  Any insight would be appreciated.

Comment
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Wednesday, 30 September 2020 10:12 AM UTC
  2. PowerBuilder
  3. # 3

If the same code works on other customers, maybe it's just a matter of opening up port 25 to allow smtp in either windows, their antivirus firewall or both.

It could be their anti virus blocking port 25. For example, in older McAffee versions, that's the "protect against worms and other malware" (or something like that) setting. You'd have to add an exception to McAffee. (when you do, you'll probably see that Outlook.exe, if installed, is already there too). 

NOTE: this is information dating from the end of the 90-ies. McAffee might have changed this completely by now.

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Tuesday, 29 September 2020 22:43 PM UTC
  2. PowerBuilder
  3. # 4

Hi Larry;

   This could be a hard one to get information on as the "n_cpp_smtp" (AFAIK) never came from a PB vendor. Most likely a 3d party or home grown C++ widget.

   As an alternative, you want to try Roland's SMTP email alternative ... https://www.topwizprogramming.com/freecode_emailsmtp.html

HTH

Regards ... Chris

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.