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

Namespace: CMS.EmailEngine
Assembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 13.0.131
Syntax
C#
public static int 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
Attachment type
size
Type: SystemInt32
Size of the attachment
binary
Type: SystemByte
Binary data
contentId
Type: SystemString
Attachment content 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: Int32
See Also