Opening a template and attaching a file

I am writing a script using VBScript and automation.  I have created an Outlook 2000 email message template.  My script does some work and creates a file.  I would like my script to then open the Outlook template and attach the file to it.  I will then enter the email address and fire it off.  Any suggestions on how to open the template and attach a file to it?
jlalandeAsked:
Who is Participating?
 
slink9Connect With a Mentor Commented:
Okay.  Just checking.

Have you looked at the OL2k object model? - www.microeye.com/resources/ObjectModel.htm 

That is a tremendous help in OL scripting and VBA programming.
0
 
slink9Commented:
What script do you have so far?  Maybe we can make suggestions for improvement.

If this is a homework question, we have already been there and did our own work.
0
 
jlalandeAuthor Commented:
Howework?  Heh, that's funny.  I finished school six years ago.
The script in question has been has been used for a very long time.  I am just trying to automate the process the rest of the way.  When I get it running correctly, I am going to use it as a guide to do the whole thing in c# with a nice GUI.
0
Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

 
jlalandeAuthor Commented:
Your diagram is very busy but it did get me started on the right path...
The ultimate goal being a C# implementation, I was able to find the answers I needed at these two sites:

http://support.microsoft.com/default.aspx?id=310244
http://support.microsoft.com/default.aspx?id=310263

Now I would like to create an email account in Outlook on the fly, thereby generalizing the solution and getting rid of the template altogether.  But I don't see an Account collection in the diagram nor can I find anything on the net on how to send email using anything but the default account.  Do you know how to send email using settings other than the ones in the default account?
0
 
slink9Commented:
I don't believe you will be able to do that.  I have code for sending email from VFP using Outlook and MAPIMail but they use the default account.
0
 
jlalandeAuthor Commented:
Ok, well thanks for that....I won't waste my time trying to find that solution.
0
All Courses

From novice to tech pro — start learning today.