NetTalk Central

Author Topic: Receiving emails  (Read 3097 times)

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • Email
Receiving emails
« on: March 05, 2013, 05:46:00 AM »
Hi

Where to set the .AttachmentPath so that attached files ends up in there own folder?

/Niels

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: Receiving emails
« Reply #1 on: March 06, 2013, 12:55:30 AM »
pretty much anywhere you like before it actually starts receiving emails.
ie
thisEmail.AttachmentPath = 'c:\temp'

cheers
Bruce

Niels Larsen

  • Sr. Member
  • ****
  • Posts: 420
    • View Profile
    • Email
Re: Receiving emails
« Reply #2 on: March 06, 2013, 02:23:05 AM »
Thanks, but unfortunately it is not quite clear to me where each mail initiate a download.

Bruce

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 11183
    • View Profile
Re: Receiving emails
« Reply #3 on: March 06, 2013, 02:41:01 AM »
(I could just tell you, but you'll learn more doing it like this - if you don't come right let me know...)

Right click on the procedure.
choose Source
Search for the name of your Email object.
See all the places where the email object is used.
(at this point you can ignore all the generated methods with the Parent call, focus on places where object methods are called.)
See if you can see which one triggers an Email Fetch.
If you can, then put your code before that.

cheers
Bruce