NetTalk Central

Author Topic: Is there a way to control the naming of downloaded attachments  (Read 3037 times)

webwilcox

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • Email
Is there a way to control the naming of downloaded attachments
« 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?

webwilcox

  • Newbie
  • *
  • Posts: 31
    • View Profile
    • Email
Re: Is there a way to control the naming of downloaded attachments
« Reply #1 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.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11193
    • View Profile
Re: Is there a way to control the naming of downloaded attachments
« Reply #2 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