Link to home
Start Free TrialLog in
Avatar of Greenback
Greenback

asked on

Setting "To" property when creating a custom form

I'm creating a custom form and want to set the recipient myself without the user seeing it or being able to change it.

I've been playing around with the different objects and the like in the vbscript accompanying the form and am hoping someone can point me in the right direction.

thanks.
ASKER CERTIFIED SOLUTION
Avatar of aeklund
aeklund

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Greenback
Greenback

ASKER

For the record, to add recipients to a form that is already open, there is no "." before Recipients.

Recipients.Add("blah@blah.com")

The "." appears to be used when creating a new mailitem and setting the recipient then.

Thanks again.
Glad to help.

I have to ask why a "B" grade?  If my answer didn't meet your satisfactory, I wish you would have at least let me know so that I could collaborate and provide you with a more better solution to meet your needs.  I feel like I have been blind sided!

I use the "." as merily a reference that "Receipits" is a collection of the mailitem object, or in your case if you have the form open, it is a collection of the item you have open.