Thanks Hollis .. I wasn't aware of the recipients collection object. I'm guessing the vbScript fired, but network connectivity issues prevented the form from sending when the user clicked the button.
I think the best way to tackle this issue is to resolve the address field, and include error handling in case the address doesn't resolve. This way, the user is aware of the issue, and can re-try sending the form when connectivity issues subside.
Thanks again. Boyd.
Hollis Paul [MVP - Outlook] wrote:
[Quoted Text] > In article <1159470827.365340.3560[ at ]d34g2000cwd.googlegroups.com>, Boyd > wrote: > > Item.To = "johnsmith[ at ]abc.com" > > Item.Send > > > Actually, you are lucky it works for anybody. When you set up > recipient email addresses in code, you are supposed to add a recipient > object to the recipients collection object, initialize its subfields, > and then resolve the address to be sure it will actually send. I had > expected to find a simple writeup of this at either www.slipstick.com > or www.outlookcode.com, but I have just spent some time at both and > cannot find anything through search. Bummer. Try looking up the > objects through the object browser help which you can reach using F2 in > the VBScript editor. > > -- > Hollis Paul > Mukilteo, WA USA
|