WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

Miscellaneous

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Interacting w/ MS Exchange...

Keywords:    MS Exchange

Question:

We would like to automate sending a daily email (through MS Internet Mail w/ a dial-up account), but I can't figure out how to determine if the message went out successfully, and if not, retry the send in an hour. I'm just using a bunch of SendKeys right now -- is there an easier way? And is there a way monitor the outcome of the send attempt?

Answer:

You might Take a look into using the MAPI Extender we offer.

Or else use the Postie extender and send some SMTP mail.

In the BackOffice Resource Kit, there is a program called mapisend.exe that lets you pass parameters to activate an exchange/outlook client that can do everything you need.

If you don't have the utility, there are a couple of ways to do what you want.

  1. The easiest way is to configure Exchange under Options/Sending/Tracking Options to Tell me when all messages have been delivered. This can also be set on individual messages, if you need to send more than this "special" message.

  2. Another thing to check is if the message is still in the Outbox; messages "sit" in the Outbox until they have been delivered.

  3. Finally, under Sending messages, you can configure Exchange so the Sent messages will go into your Sent Items, Save Copies of Messages in Sent Folder.

  4. But the easiest way is to setup a "Status Folder" and then configure the message itself (the options tab) Save Sent Message to (at which point you can set it for Status Folder, or whatever name you want)in which case you can just check this folder for messages.

  5. To check the messages with WinBatch, I would jump down to the folder you have chosen (use a unique first letter so you can just hit the first letter) then Tab over and Hit Enter or Space Bar. If the message is there (which means it's been sent) you should be able to check for the window name existing. If it has not been sent, you will either get no window at all or the wrong name.

I have not tried this myself (we have actually used SendKeysChild in Exchange for scripts) but in theory, it should work.


Article ID:   W13447
Filename:   Interacting with MS Exchange.txt
File Created: 2001:01:23:09:28:04
Last Updated: 2001:01:23:09:28:04