Creates an instance from a Message 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(
	Message message,
	NHINDAddressCollection recipients,
	NHINDAddress sender
)
Visual Basic
Public Sub New ( _
	message As Message, _
	recipients As NHINDAddressCollection, _
	sender As NHINDAddress _
)
Visual C++
public:
MessageEnvelope(
	Message^ message, 
	NHINDAddressCollection^ recipients, 
	NHINDAddress^ sender
)

Parameters

message
Type: NHINDirect.Mail..::..Message
The Message this envelopes
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