1. Simone Olianti
  2. PowerBuilder
  3. Tuesday, 9 January 2024 08:44 AM UTC

Hello to everyone, i'm trying to use the SMTPClient object to send email messages asynchronously.
Everything working fine except when i try to set a log file to store informations from the server using:

smtpclient.LogFile(la_path, true)

If i use the "Send" function the file is created correctly, but when i use the "SendAsync" no log file is created.
Not sure if this is a bug or not.
Any ideas?
tia,
simone


Accepted Answer
Andreas Mykonios Accepted Answer Pending Moderation
  1. Tuesday, 9 January 2024 08:57 AM UTC
  2. PowerBuilder
  3. # Permalink

Hi.

This is a normal behavior and it is documented (LogFile - - PowerScript Reference (appeon.com)). It's clearly stated that "This function takes no effect when sending an email asynchronously. You can use OnSendFinished to get the error log when sending an email asynchronously."

Andreas.

Comment
  1. Simone Olianti
  2. Tuesday, 9 January 2024 10:10 AM UTC
thank you Andreas!
  1. Helpful
There are no comments made yet.


There are replies in this question but you are not allowed to view the replies from this question.