Solved

Opening a template and attaching a file

Posted on 2004-08-15
6
231 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 500 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
Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

 

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

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

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

Not sure what the best email signature size is? Are you worried about email signature image size? Follow this best practice guide.
Follow this checklist to learn more about the 15 things you should never include in an email signature from personal quotes, animated gifs and out-of-date marketing content.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
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: …

863 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

Need Help in Real-Time?

Connect with top rated Experts

28 Experts available now in Live!

Get 1:1 Help Now