EmailInfoProviderBindEmailAttachment Method |
Add attachment to specified e-mail and return its ID.
Namespace: CMS.EmailEngineAssembly: CMS.EmailEngine (in CMS.EmailEngine.dll) Version: 12.0.0
Syntax 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:
Int32See Also