1. Brian Walker
  2. PowerBuilder
  3. Monday, 12 April 2021 18:00 PM UTC

Hello,
I'm having an issue with PBNISMTP in PB2017R3 and PB2019R3.  We've been using the version specific PBNISMTP through past versions of Powerbuilder and are currently using PBNISMTP126 in PB2017R3 without issue.  Migrating to PB2019R3 is requiring an up to date version of PBNISMTP.

I downloaded a recent copy from https://www.topwizprogramming.com/pbnismtp.html and successfully imported pbnismtp.pbx into the project. I also copied it into Program Files(x86)\Appeon\Shared as well as the application directory.

Here is the code:
l_smtp = CREATE n_cpp_smtp
l_smtp.SetRecipientEmail(ls_ToMail)
l_smtp.SetCCRecipientEmail(ls_CcMail)
l_smtp.SetSenderEmail (ls_FromMail)
l_smtp.SetSubject (ls_Subject)
l_smtp.SetMessage (ls_body)
l_smtp.SetSMTPServer (ls_EmailServer)
l_smtp.seterrormessageson()
l_smtp.setattachment (ls_attachments)
li_rc = l_smtp.Send()

I get the following error when it gets to the send function call:
Could not send message: Error:800703EC
Description:Invalid flags.

I wasn't able to find much on the error messages.  Any ideas what is causing this error?  Or what I'm missing?

I also created an application for the supplied pbnismtp.pbl and received the same error as above.  I wasn't sure what to put for the Connection type and Auth method so I used the following which I found on another post:
Connection type: Auto STARTTLS
Auth Method: AUTO

Thanks for your help,
Brian

Falguni Patel Accepted Answer Pending Moderation
  1. Tuesday, 13 April 2021 03:37 AM UTC
  2. PowerBuilder
  3. # 1

This is working fine for me. There is no issue to send emails with and without attachments.

 

Comment
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Monday, 12 April 2021 23:28 PM UTC
  2. PowerBuilder
  3. # 2

I'm working with Brian offline with this. I tested with PB 2019-R3 and it worked fine in 32bit and 64bit with and without attachments.

 

Comment
There are no comments made yet.
Chris Pollach @Appeon Accepted Answer Pending Moderation
  1. Monday, 12 April 2021 20:15 PM UTC
  2. PowerBuilder
  3. # 3

Hi Brian;

  Suggestion: Sounds like you might like to contact Roland Smith at TopWiz and see if he knows why his code is acting this way.

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.