Net Importer Demo

More
4 years 7 months ago - 10 months 1 week 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: 10 months 1 week ago by Bruce Armstrong.

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

More
1 year 10 months ago - 1 year 10 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 10 months ago by yann dulondel.

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

More
4 years 2 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.

More
4 years 2 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.

More
4 years 2 months ago - 4 years 2 months ago #295 by Miguel Leeuwe
Miguel Leeuwe replied the code: Net Importer Demo
Hi Bruce,
It doesn't work, even after:
Edited: It does work, after:
- Putting the call to mailclient.of_sendmail() in the button's clicked
- Putting in the call to the correct of_sendMail() function - the window's function - in the button's clicked.
- making the window wider so labels on the left don't disappear when tabbing to the password field

Cheers,
MiguelL
Last Edit: 4 years 2 months ago by Miguel Leeuwe. Reason: My Bad, I was directly calling the mailclient's of_sendMail() instead of the window's of_sendmail()

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

Moderators: Appeon Administrator