From: Jeff Miller Date: 2008-08-19T09:21:45+09:00 Subject: Re: Outlook, MAPI, Sending Mail Jade Tucker wrote: > Hi All, > Hey there, I had to develop an application that had to interact with Outlook quite a bit - however, I recommend that you use MAPI/CDO via the Exchange side rather than through client-side outlook, since you have less dependencies and a less likely chance of it breaking. Check out some VB examples from CDOlive.com and outlookcode.com . There is great help there. Good luck, - Jeff Miller > I am trying to write a program to test that our email servers are > working properly. > > I have a ruby program to send an email from a MS Outlook inbox connected > to an exchange mail server. The program using WIN32OLE to connect to > Outlook. The program sends an email to another email account (out of > our network) that is setup to automatically send back the email. My > program then waits for the email to return for a max of 5 minutes before > it will fail. > > The first issue I encountered was Outlook poping up a dialog box warning > me that a program was trying to send an email on my behalf. With > Outlook 2007 I was able to disable this security restriction. > > This program needs to run on a server without anyone logged in. For > some reason this is not working as a scheduled task set to run under the > user the email account is setup for. > > I am looking for any help or advice on how to get this working. I am > getting frustrated with developing applications that run fine normaly, > but as soon as I try to run them on a schedule or invoked remotely they > start breaking. > > Does anyone know of a better way to do this or can help me with my > problem? > > Thanks, > JT -- Posted via http://www.ruby-forum.com/.