1. Robert Sleath
  2. PowerServer 2020 or older (Obsolete)
  3. Wednesday, 31 January 2018 18:52 PM UTC

We would like the server to generate emails rather than the desktop.

Is this possible?

Marco Meoni Accepted Answer Pending Moderation
  1. Wednesday, 31 January 2018 20:42 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 1

Hello Robert,

  1. take Roland/Bruce's code at http://www.topwizprogramming.com/pbnismtp.html
  2. wrap it into a PB NVO and compile as a PB .NET Assembly target
  3. deploy (copy) the generated Assembly to PowerServer Web for .NET (IIS)
  4. call the Assembly using the AppeonDotNetComponent object included into appeon_workaround.pbl

Alternatively, you can skip 1) and 2) and take one among the few freeware C# example codes demonstrating how to send email using SMTP, compile the code (from Visual Studio) into a managed .NET Assembly and do 3) and 4).

Cheers,

Marco

 

 

Comment
There are no comments made yet.
Marco Meoni Accepted Answer Pending Moderation
  1. Wednesday, 31 January 2018 20:50 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 2

...and this is an alternative PB implementation for step 1)

https://support.appeon.com/index.php?/Knowledgebase/Article/View/128/0/sending-smtp-emails-from-powerbuilder-applications

​Cheers,

Marco

Comment
There are no comments made yet.
Robert Sleath Accepted Answer Pending Moderation
  1. Thursday, 5 April 2018 17:59 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 3

Good progress so far.

 

I downloaded the .pbx file and Pb example from http://www.topwizprogramming.com/pbnismtp.html

This all works in my desktop PB app but I'm missing something deploying the app using AppeonWeb.

What is required to deploy and use the .pbx file in the server environment?

I'm not a visualStudio user so I'm hoping to skip anything that requires VS.

Comment
There are no comments made yet.
Antony Xavier Accepted Answer Pending Moderation
  1. Wednesday, 5 December 2018 11:16 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 4

Hi Macro,

https://support.appeon.com/index.php?/Knowledgebase/Article/View/128/0/sending-smtp-emails-from-powerbuilder-applications

 

I tried to download emailsmtp.zip (71.40 KB), but download with zero byte.

 

Regards

Antony

 
Comment
  1. Chris Pollach @Appeon
  2. Wednesday, 5 December 2018 15:25 PM UTC
Hi Anthony;

Yes, I get the same download result - Zero bytes.

I would suggest trying Roland's PB code.

Regards ... Chris

  1. Helpful
  1. Antony Xavier
  2. Thursday, 6 December 2018 05:01 AM UTC
Hi chris,



thanks for the suggestion, hope it will work on web :-)



regards

Antony
  1. Helpful
There are no comments made yet.
Roland Smith Accepted Answer Pending Moderation
  1. Wednesday, 5 December 2018 11:46 AM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 5

I suspect that PBNI isn't supported by the web deployment. Try this one:

http://www.topwizprogramming.com/freecode_emailsmtp.html

 

Comment
There are no comments made yet.
Antony Xavier Accepted Answer Pending Moderation
  1. Wednesday, 16 January 2019 15:04 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 6

Hi Macro,

I downloaded the below application and it is working from web, but when I enable html option mail is not going!, how we can enable.

https://support.appeon.com/index.php?/Knowledgebase/Article/View/128/0/sending-smtp-emails-from-powerbuilder-applications

Regards

Antony

 

Comment
  1. mike S
  2. Wednesday, 8 June 2022 13:43 PM UTC
mapi is client side - it uses an email client.



you need to change to calling a rest service to send the email.
  1. Helpful
  1. Roland Smith
  2. Wednesday, 8 June 2022 14:34 PM UTC
With MAPI your code communicates with the mail client, Outlook for example. With SMTP your code communicates with the mail server so can be done from the web. I removed the EmailSMTP example from my website. I have a different one you can use: https://www.topwizprogramming.com/pbnismtp.html.
  1. Helpful
  1. Danny De Clercq
  2. Wednesday, 8 June 2022 14:51 PM UTC
I don't know if my question was clear enough. I'm using Powerserver 2020.

For what I understand is that for MAPI, the mail client on the pc with the browser/IWA is used (and not a mail client next to the powerserver installation on IIS). We can't ask to our customers to install a mail client...



@RolandSmith "With SMTP your code communicates with the mail server ...". Do you know if the SMTP code is executed in the browser/IWA or on the powerserver(on our server)? What I read from the manuals, is that external dll's are used from the pc with the browser/IWA, so it's also the internet provider of the customer that is used to connect with the smtp server, or am I wrong?
  1. Helpful
There are no comments made yet.
Miguel Leeuwe Accepted Answer Pending Moderation
  1. Thursday, 17 January 2019 15:39 PM UTC
  2. PowerServer 2020 or older (Obsolete)
  3. # 7

Sorry Roland, did not see your comment of this next link having a very old version, so edited my message which said I was able to download the one from knowledgebase

 

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.