Net Importer Demo

Bruce Armstrong
CODE AUTHOR
Posts: 55
 4 years 8 months ago -  11 months 3 days ago #274 by Bruce Armstrong
Bruce Armstrong created the code: Net Importer Demo
C# (SnapDeveloper) and PowerBuilder code showing how to write a wrapper class for the MailKit library in SnapDevelop and use it from PowerBuilder to send SMTP email through Google Mail.

12/28/2020: The sample has been updated for 2019 R3.

This message has an attachment file.
Please log in or register to see it.

Last Edit: 11 months 3 days ago by  Bruce Armstrong

Please Log in or Create an account to join the conversation.

yann dulondel
Posts: 1
 1 year 11 months ago -  1 year 11 months ago #452 by yann dulondel
yann dulondel replied the code: Net Importer Demo
Hi Bruce
I try to use your demo but i got an error when loading the assembly.
I will try to translate from French to English.
It said that the application try to remotly load the assemly and this would have execute it in a sandbox mode in old version of do.net
Any idea how to solve this ?

Found the solution , unblock the DDL on computer
Sorry.
Yann D

Last Edit: 1 year 11 months ago by  yann dulondel

Please Log in or Create an account to join the conversation.

Miguel Leeuwe
Posts: 8
 4 years 3 months ago #297 by Miguel Leeuwe
Miguel Leeuwe replied the code: Net Importer Demo
Thank you Bruce, no rush. I've got it working.
The clicked event of the Send button missed the call to of_SendMail().
Initially I made the mistake of calling "mailclient.of_sendMail()", which is wrong: I had to call the window's of_sendmail() function.
(not sure if also some of the other function calls had to have "of_" in front of the function call's name, since I was playing around, importing the DLL myself with different "Advanced options" in the DLL Importer Tool).
Success for your Elevate!
regards
MiguelL

Please Log in or Create an account to join the conversation.

Bruce Armstrong
Posts: 1
 4 years 3 months ago #296 by Bruce Armstrong
Bruce Armstrong replied the code: Net Importer Demo
Yes, I noticed the same when I went to update it for the PowerBuilder 2019 R3 Beta. I'm looking into it.

I've got a bunch of other sessions that I'll be doing for Elevate 2020 that I need to update first though, so I may not get to this for a while. I'll post something when I've determined what the issue is though.

Please Log in or Create an account to join the conversation.