?
Solved

Opening a template and attaching a file

Posted on 2004-08-15
6
Medium Priority
?
239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 

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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

Question has a verified solution.

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

When you have clients or friends from around the world, it becomes a challenge to arrange a meeting or effectively manage your time. This is where Outlook's capability to show 2 time zones in one calendar comes in handy.
This article will help to fix the below errors for MS Exchange Server 2013 I. Certificate error "name on the security certificate is invalid or does not match the name of the site" II. Out of Office not working III. Make Internal URLs and Externa…
Many of my clients call in with monstrous Gmail overloading issues with Outlook. A quick tip is to turn off the All Mail and Important folders from synching. Here is a quick video I made to show you how to turn off these and other folders in Gmail s…
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…
Suggested Courses

743 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