View.ShowMailItem(String, String, String, String, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an e-mail message containing the current view.
public:
abstract void ShowMailItem(System::String ^ destinationTo, System::String ^ destinationCC, System::String ^ destinationBcc, System::String ^ subject, System::String ^ body);
public abstract void ShowMailItem (string destinationTo, string destinationCC, string destinationBcc, string subject, string body);
abstract member ShowMailItem : string * string * string * string * string -> unit
Public MustOverride Sub ShowMailItem (destinationTo As String, destinationCC As String, destinationBcc As String, subject As String, body As String)
Parameters
- destinationTo
- String
The addresses for the To field of the e-mail message.
- destinationCC
- String
The addresses for the CC field of the e-mail message.
- destinationBcc
- String
The addresses for the BCC field of the e-mail message.
- subject
- String
The Subject field of the e-mail message.
- body
- String
The text for the body of the e-mail message.
Exceptions
The parameters passed to this method are a null reference (Nothing in Visual Basic).
The parameters passed to this method are not valid. For example, they are of the wrong type or format.
Examples
In the following example, the ShowMailItem method of the View class is used to create a mail message for the current view.
this.CurrentView,ShowMailItem("someone@example.com", null, null,
"Sample InfoPath Form", "This is a sample InfoPath form.");
Me.CurrentView,ShowMailItem("someone@example.com", String.Empty, _
String.Empty, "Sample InfoPath Form",
"This is a sample InfoPath form.");
Remarks
This member 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.
This type or member can be accessed only from code running in forms opened in Microsoft InfoPath Filler.