Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Opening a template and attaching a file

Posted on 2004-08-15
6
Medium Priority
?
240 Views
Last Modified: 2010-04-08
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?
0
Comment
Question by:jlalande
  • 3
  • 3
6 Comments
 
LVL 23

Expert Comment

by:slink9
ID: 11804548
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
 

Author Comment

by:jlalande
ID: 11804609
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
 
LVL 23

Accepted Solution

by:
slink9 earned 1500 total points
ID: 11804653
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
Fill in the form and get your FREE NFR key NOW!

Veeam is happy to provide a FREE NFR server license to certified engineers, trainers, and bloggers.  It allows for the non‑production use of Veeam Agent for Microsoft Windows. This license is valid for five workstations and two servers.

 

Author Comment

by:jlalande
ID: 11805351
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
 
LVL 23

Expert Comment

by:slink9
ID: 11806079
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
 

Author Comment

by:jlalande
ID: 11807171
Ok, well thanks for that....I won't waste my time trying to find that solution.
0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

This article describes how to import an Outlook PST file to Office 365 using a third party product to avoid Microsoft's Azure command line tool, saving you time.
Are you looking for the options available for exporting EDB files to PST? You may be confused as they are different in different Exchange versions. Here, I will discuss some options available.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

926 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