Share via


SPEmailMessage Constructor

Initializes a new instance of the SPEmailMessage class.

Namespace:  Microsoft.SharePoint.Utilities
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No

Syntax

'Declaration
Public Sub New ( _
    stream As Stream, _
    envelopeSender As String _
)
'Usage
Dim stream As Stream
Dim envelopeSender As String

Dim instance As New SPEmailMessage(stream, _
    envelopeSender)
public SPEmailMessage(
    Stream stream,
    string envelopeSender
)

Parameters

  • stream
    Type: System.IO.Stream

    A Stream object that represents the e-mail message, including headers.

  • envelopeSender
    Type: System.String

    A string that contains the RFC 821 MAIL FROM sender of the message.

See Also

Reference

SPEmailMessage Class

SPEmailMessage Members

Microsoft.SharePoint.Utilities Namespace