Solved

Using Outlook Trigger for FTP interaction, Possibly with VBA

Posted on 2013-01-14
6
649 Views
Last Modified: 2013-01-29
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
Comment
Question by:DB-aha
  • 3
  • 3
6 Comments
 
LVL 57
ID: 38774745
<< 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
 
LVL 1

Author Comment

by:DB-aha
ID: 38775399
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
 
LVL 57
ID: 38775517
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
Migrating Your Company's PCs

To keep pace with competitors, businesses must keep employees productive, and that means providing them with the latest technology. This document provides the tips and tricks you need to help you migrate an outdated PC fleet to new desktops, laptops, and tablets.

 
LVL 1

Author Comment

by:DB-aha
ID: 38788830
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
 
LVL 57

Accepted Solution

by:
Jim Dettman (Microsoft MVP/ EE MVE) earned 500 total points
ID: 38788983
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
 
LVL 1

Author Closing Comment

by:DB-aha
ID: 38832950
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

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Outlook 2012 VBA: Object missing 14 29
Allow user to edit an outgoing email 2 24
Access on Mouse move 5 30
Access check if a table is open 4 39
What does UTC stand for?  “Coordinated Universal Time” – Think of this as the true time on Planet Earth that never changes with the exception of minor leap seconds here and there to account for the changes in the planet's rotation.   What does th…
Having trouble getting your hands on Dynamics 365 Field Service or Project Service trial? Worry No More!!!
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

785 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question