PBNISMTP issue - 2019R3
- Issue
- Brian Walker
- PowerBuilder
- Monday, 12 April 2021 06: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
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.