NetTalk Central

NetTalk E-Mail => E-Mail - Ask For Help => Topic started by: webwilcox on November 30, 2018, 09:16:53 AM

Title: Is there a way to control the naming of downloaded attachments
Post by: webwilcox on November 30, 2018, 09:16:53 AM
I'm building an application that will download emails from an internal email server.  The contents of the email will be used to update a DB Record.  If there are attachments on the email, can I set the attachment name before it is saved to the local drive?
Title: Re: Is there a way to control the naming of downloaded attachments
Post by: webwilcox on December 03, 2018, 06:30:41 AM
I started playing with the AttachmentListQ and am renaming the desired attachments as they are saved.  Not sure if this is the best way or not so if anyone has any better ideas please let me know.
Title: Re: Is there a way to control the naming of downloaded attachments
Post by: Bruce on December 04, 2018, 04:36:27 AM
There's a method;
SetAttachmentFileName
which you can use to "see" the incoming file name, and change it as necessary.

cheers
Bruce