Creates an instance from an RFC 5322 message string and explicitly assigned sender and receivers, which take precendence over what may be in the message headers.

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

Syntax

C#
public MessageEnvelope(
	string messageText,
	NHINDAddressCollection recipients,
	NHINDAddress sender
)
Visual Basic
Public Sub New ( _
	messageText As String, _
	recipients As NHINDAddressCollection, _
	sender As NHINDAddress _
)
Visual C++
public:
MessageEnvelope(
	String^ messageText, 
	NHINDAddressCollection^ recipients, 
	NHINDAddress^ sender
)

Parameters

messageText
Type: System..::..String
The RFC 5322 message string to intialize this envelope from. Stored as RawMessage
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