1. Sathishkumar S
  2. PowerBuilder
  3. Monday, 9 October 2023 16:13 PM UTC

Hi All,

In PowerBuilder 2022 R2 2819, I am using SMTPclient which I declared and created as instance using sendsync method.
I am sending multiple emails at a time to different recipients with different attachments but what is happening is, the functions like AddRecipient, AddCc, AddBcc and AddAttachment are getting appended instead of having the latest details
I want to clear the existing ones before adding the new ones AddRecipient, AddCc, AddBcc and AddAttachment.

I am not able to see any specific functions like clear/remove the values. The only option possibility i found is to have it as a local SMTPclient then create it later destroy end of the script.

Is there any other way to handle it?

Thanks in advance
Regards
Sathishkumar

Accepted Answer
Arnd Schmidt Accepted Answer Pending Moderation
  1. Monday, 9 October 2023 17:50 PM UTC
  2. PowerBuilder
  3. # Permalink
Comment
  1. Sathishkumar S
  2. Tuesday, 10 October 2023 01:44 AM UTC
Hi Arnd Schmidt,

Thank you, yes this is what I am looking for.

Regards

Sathishkumar
  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.