EmailInfoProvider BindEmailAttachment Method Kentico 8.0 API Reference
Add attachment to specified e-mail and return its info object.

Namespace: CMS.EmailEngine
Assembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 8.0.0.0 (8.0.5239.26125)

Parameters

emailId
Type: OnlineSystem Int32
E-mail
name
Type: OnlineSystem String
Attachment name
extension
Type: OnlineSystem String
Attachment extension
mimetype
Type: OnlineSystem String
Atachment type
size
Type: OnlineSystem Int32
Size of the attachment
binary
Type:  OnlineSystem Byte 
Binary data
contentId
Type: OnlineSystem String
Attachment conten ID
guid
Type: OnlineSystem Guid
Attachment GUID - e.g. metafile GUID
lastModified
Type: OnlineSystem DateTime
Last modification date of the attachment - e.g. metafile last modification
siteId
Type: OnlineSystem Int32
Site ID - if the attachment is of specified site

Return Value

Type: EmailAttachmentInfo
See Also