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

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!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top