Creates an instance from a Message instance, with explicitly assigned raw message, recipients and sender, which take precendece over what may be in the message object or text.

Namespace: NHINDirect.Agent
Assembly: nhinAgent (in nhinAgent.dll) Version: 1.0.0.0 (1.0.0.0)

Syntax

C#
protected MessageEnvelope(
	Message message,
	string rawMessage,
	NHINDAddressCollection recipients,
	NHINDAddress sender
)
Visual Basic
Protected Sub New ( _
	message As Message, _
	rawMessage As String, _
	recipients As NHINDAddressCollection, _
	sender As NHINDAddress _
)
Visual C++
protected:
MessageEnvelope(
	Message^ message, 
	String^ rawMessage, 
	NHINDAddressCollection^ recipients, 
	NHINDAddress^ sender
)

Parameters

message
Type: NHINDirect.Mail..::..Message
The Message this envelopes
rawMessage
Type: System..::..String
The RFC 5322 message string to use ae the raw message for this instance.
recipients
Type: NHINDirect.Agent..::..NHINDAddressCollection
The NHINDAddressCollection of reciepients; takes precedence over the To: header
sender
Type: NHINDirect.Agent..::..NHINDAddress
The NHINDAddress of the sender; takes precendence over the From: header.

See Also