Sets or retrieves a Boolean value that indicates the visibility of the custom e-mail message created with the MailEnvelope object that is associated with a Window object.
expression.Visible
expression Required. An expression that returns a reference to the MailEnvelope object.
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.
Remarks
When the Visible property of the MailEnvelope object is set to True, the custom e-mail message will be displayed using the default e-mail editor. If there is no default e-mail editor configured, the Visible property will return an error.
Example
In the following example, the Visible property of the MailEnvelope object is used to display a custom e-mail message in the default e-mail editor:
function CreateMailEnvelope::OnClick(eventObj)
{
var objEmail;
objEmail = Application.ActiveWindow.MailEnvelope;
objEmail.To = "[email protected]";
objEmail.CC = "[email protected]";
objEmail.BCC = "[email protected]";
objEmail.Subject = "Test e-mail message";
objEmail.Visible = true;
objEmail = null;
}