1. marco gaspar
  2. PowerBuilder
  3. Monday, 26 September 2022 12:25 PM UTC

Good Morning!
How to send email directly from PB, without having any email program installed on the local machine?

Thanks!

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Monday, 26 September 2022 16:10 PM UTC
  2. PowerBuilder
  3. # 1

You will need to go with one of the workarounds Andreas suggested.  However, we are adding this feature to PB 2022 R2.  Check out the product roadmap page: https://www.appeon.com/developers/roadmap

Comment
There are no comments made yet.
Andreas Mykonios Accepted Answer Pending Moderation
  1. Monday, 26 September 2022 12:34 PM UTC
  2. PowerBuilder
  3. # 2

Hi.

There are many ways to implement that. Some options are:

  • Using PBNISMTP by Roland Smith - originally written by Bruce Armstrong - (Topwiz Software - PBNISMTP (topwizprogramming.com)).
  • Create and call a powershell script (you may find exambles - just google it).
  • Create a .net assembly to send email. You may also find lot of examples. If you choose this option you can use .NET DLL Importer to use it in your application.

Personally I did used 2nd and 3rd options. But I'm sure that PBNISMTP will do the job fine.

Andreas.

Comment
  1. Andreas Mykonios
  2. Monday, 26 September 2022 13:02 PM UTC
SQL Anywhere does support send mail and it works great. But we don't know which database is Marco using.



Andreas.
  1. Helpful
  1. Roland Smith
  2. Monday, 26 September 2022 13:04 PM UTC
With SMTP, your app communicates directly with the mail server. Some databases do have an email stored procedure. They are useful for simple text only messages from triggers or your own stored procedures.

SMTP is listed as a future feature for PB 2022-R2/R3 so we have that to look forward to. The roadmap doesn't actually say SMTP but it seems to be the only way to implement what it does say:



• Native email client

Enable direct connection to mail server for email services.
  1. Helpful 2
  1. Roland Smith
  2. Monday, 26 September 2022 13:06 PM UTC
I wonder if IMAP or POP3 is part of the future Native email client.
  1. Helpful 1
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.
We use cookies which are necessary for the proper functioning of our websites. We also use cookies to analyze our traffic, improve your experience and provide social media features. If you continue to use this site, you consent to our use of cookies.