Clear Attachments from previous email - WeOnlyDo Discussion board

Clear Attachments from previous email (wodSmtp)

by Scott Robinson, Wednesday, December 16, 2020, 22:54 (1215 days ago)

I am doing something like this with the wodSMTP component:

Login once

Send multiple emails to different email addresses


The problem is, if the first email has an attachment added (using the wodSMTP.Message.Attach), then any email after that contains the same attachment, which I do not want.

Is there a way to clear the previous attachments without clearing out the whole wodSMTP object and not doing a Logout?

Thanks in advance for your help!

Complete thread: