Setting "To" property when creating a custom form

Posted on 2003-03-06
Medium Priority
Last Modified: 2010-04-07
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.

Question by:Greenback
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
  • 2
LVL 10

Accepted Solution

aeklund earned 150 total points
ID: 8084378
Use the .Receipients.Add ("blah@blah.com") method of the Mailitem object...

Author Comment

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


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

Thanks again.
LVL 10

Expert Comment

ID: 8089066
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.

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Read this checklist to learn more about the 15 things you should never include in an email signature.
In this article I discuss my selections of the Top Four free Outlook OST File Viewers available. Open, view and read even damaged OST files by using these tools. They all provide a clear preview of all data such as emails, notes, tasks, calendars, e…
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
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

770 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