1. Sathishkumar S
  2. PowerBuilder
  3. Friday, 6 October 2023 14:25 PM UTC

Hi all,

IN PB2022 R2 SMTPClient, 
How can I setup the SMTPClient such as SSL, Threads & Connection Attempts

SSL (How to define the SSL) by defualt what is the encrypted connection methos for SMTPClient

Threads (How many thread that SMTPclient can have by default or how to set from user side when sending messages asynchronously using SendSync)

Connection Attempts (to define how many times SMTP Client will retry to connect to the server)

Thanks in Advance
Sathishkumar.

Armeen Mazda @Appeon Accepted Answer Pending Moderation
  1. Monday, 9 October 2023 16:44 PM UTC
  2. PowerBuilder
  3. # 1

SSL is obsolete and not very secure.  We recommend using TLS instead.

Comment
  1. Sathishkumar S
  2. Monday, 9 October 2023 17:12 PM UTC
Hi Armeen Mazda,



Thank you for the clarification, I will use TLS by using lnv_SmtpClient.EnableTLS = True.



Regards

Sathishkumar
  1. Helpful
  1. Armeen Mazda @Appeon
  2. Monday, 9 October 2023 17:13 PM UTC
Excellent!
  1. Helpful
There are no comments made yet.
Julie Jiang @Appeon Accepted Answer Pending Moderation
  1. Saturday, 7 October 2023 07:53 AM UTC
  2. PowerBuilder
  3. # 2

Hi Sathishkumar,

Please note that it is not supported to use SSL for the connection by SMTPClient. We have this documented here: https://community.appeon.com/index.php/qna/q-a/smtpclient-how-to-define-ssl-threads-and-connection-attempts.

And when sending messages using SendSync, there will always be a separate thread for the email-sending task. It is not possible to configure the number of threads.

Best regards, Julie

Comment
  1. Sathishkumar S
  2. Monday, 9 October 2023 12:12 PM UTC
Thank you, Julie Jiang.



I will go through the documents



Regards

Sathishkumar.
  1. Helpful
  1. Roland Smith
  2. Monday, 9 October 2023 18:25 PM UTC
If someone were to use SendSync in a loop, will it create a separate thread for each call with the thread ending when done?
  1. Helpful
  1. Julie Jiang @Appeon
  2. Tuesday, 10 October 2023 03:25 AM UTC
Hi Roland,

If the SendSync is used in a loop, a thread will be created at the first call, and is hibernated when the call is done. The same thread will be activated again when the next call is executed. The thread will be killed when the SMTPObject exits.

Best regards, Julie
  1. Helpful
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.