• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 685
  • Last Modified:

Using Outlook Trigger for FTP interaction, Possibly with VBA

Is there a way to automate Interaction with an FTP based on incoming or outgoig emial in outlook? I have been looking for an email client /  FTP client i none platform that would allow for this type of interaction but can't seem to find one. Maybe there is some VBA that allows for this to be possible?
0
DB-aha
Asked:
DB-aha
  • 3
  • 3
1 Solution
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
<< Maybe there is some VBA that allows for this to be possible?>>

 Short answer is yes.  You can inspect incoming/outgoing e-mails in Outlook in VBA and you can FTP in VBA as well so yes, it can be done.

 Actually doing it however is a little more complex.

 Maybe a little more detail on what it is exactly what your trying to do would be helpful.

Jim.
0
 
DB-ahaAuthor Commented:
From a high level:

TASK 1
- Outlook gets an email from a recipient with a certain subject header or text in the body of the email

- This triggers an access macro

-The end of the access macro will send out an outgoing email

TASK 2

- An approval email will be received by outlook

- 2 different files on local and shared drives are to be uploaded to an FTP location.

- 2 different emails are sent out to 2 different recipients when the transfer to the FTP is completed.

There are some additional steps for when we get an email that will trigger us to sign into an FTP and retrieve the most recent file as well. Please let me know if you need more details.
0
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
and do you have any of this in place as of yet or no?  (assuming no).

Outside of the FTP, do you know how to tackle it or no?  

The question covers quite a bit of ground...

Jim.
0
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
DB-ahaAuthor Commented:
The access macros are in place. The only elements of the access macros that are not developed are the email interaction and the FTP interaction. I have no experience in VBA and know not how to do the FTP interaction or the email interaction.
0
 
Jim Dettman (Microsoft MVP/ EE MVE)PresidentCommented:
Your going to need to break this down into multiple questions as it covers quite a bit of ground.

In summary though, for e-mail you can:

1. Talk to Outlook with OLE Automation and send the e-mail that way

2. Use the CDO lib

3. Talk directly to an SMTP server with something like vbSendMail or Blat

4. Buy a 3rd party mail control.

 Since you are receiving e-mail from Outlook, that's the route I'd go as your sure it will be installed.  Then you don't have to worry about usernames accounts.

For the FTP, you can:

1. Use something like this which uses the Wininet lib:

http://access.mvps.org/access/modules/mdl0037.htm

2. Script the commands and use the built-in FTP client:

http://access.mvps.org/access/modules/mdl0015.htm

3. Buy a 3rd party FTP control.

 The first is not too hard, #2 is easy but not quite as neat of a solution.  It's easy to troublshoot though because you can test the commands, write the script, then test the script as individual steps.

I would work on one piece at a time and post questions as you run into problem pointing back to here.

Jim.
0
 
DB-ahaAuthor Commented:
I will close this ticket and assign full points. From initial review, it looks correct. I have not been able to try it but I had someone review it and said it was good to try.
0

Featured Post

Get quick recovery of individual SharePoint items

Free tool – Veeam Explorer for Microsoft SharePoint, enables fast, easy restores of SharePoint sites, documents, libraries and lists — all with no agents to manage and no additional licenses to buy.

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now