Share via


EmailAdapter.To Property

InfoPath Developer Reference

Returns or sets a string that represents the recipients for the e-mail message associated with a specified EmailAdapter object. Read/write

Version Information
 Version Added:  InfoPath 2003

Syntax

expression.To

expression   An expression that returns a EmailAdapter object.

Return Value
String

Remarks

The value must be a semicolon-delimited string that can be resolved into a list of valid e-mail addresses by the user's e-mail client.

Security Level 2: Can be accessed only by forms running in the same domain as the currently open form, or by forms that have been granted cross-domain permissions.

Example

This example shows how to use the To property of an instance of the EmailAdapter object to change the recipients of an e-mail message before the EmailAdapter object is submitted:

JScript
  objEmailAdapter.To = objEmailAdapter.To + "; newUser@example.com";

See Also