How do I set the "To" field in a form?

  • Thread starter Thread starter news.microsoft.com
  • Start date Start date
N

news.microsoft.com

This must be a no-brainer, but I cannot figure out how to set the "To" field
in my custom form.
I want the user to fill in a number of user-defined fields on the form, then
I want to create the recipient address based on what they entered in those
fields.

My code looks like this:
Item.To = sMyRecipientAddress

When I try to send the item, I get an error message telling me that "there
must be at least one name" in the To or CC field.
I've tried doing it this way too:
Item.recipients.add sMyRecipientAddress
with similar results.

What am I missing here?

Thanks!
 
Back
Top