Click or drag to resize
EmailInfoProviderBindEmailAttachment Method
Add attachment to specified e-mail and return its info object.

Namespace: CMS.EmailEngine
Assembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 8.2.23
Syntax
C#
public static EmailAttachmentInfo BindEmailAttachment(
	int emailId,
	string name,
	string extension,
	string mimetype,
	int size,
	byte[] binary,
	string contentId,
	Guid guid,
	DateTime lastModified,
	int siteId
)

Parameters

emailId
Type: SystemInt32
E-mail
name
Type: SystemString
Attachment name
extension
Type: SystemString
Attachment extension
mimetype
Type: SystemString
Atachment type
size
Type: SystemInt32
Size of the attachment
binary
Type: SystemByte
Binary data
contentId
Type: SystemString
Attachment conten ID
guid
Type: SystemGuid
Attachment GUID - e.g. metafile GUID
lastModified
Type: SystemDateTime
Last modification date of the attachment - e.g. metafile last modification
siteId
Type: SystemInt32
Site ID - if the attachment is of specified site

Return Value

Type: EmailAttachmentInfo
See Also