SMTP
Feature of sending e-mail by SMTP.
attachment
_smtp.attachment(name: string, type: string, file: File) : SMTP
Description
Add attachment file to e-mail.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
name | string | The name of the attachment. |
type | string | The content type of the attachment, for example image/png, text/html, application/zip, and many others... |
file | File | The file. |
Return
( SMTP )
Current SMTP object.
_smtp.attachment(name: string, type: string, file: File, contentId: string) : SMTP
Description
Add attachment file to e-mail.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
name | string | The name of the attachment. |
type | string | The content type of the attachment, for example image/png, text/html, application/zip, and many others... |
file | File | The file. |
contentId | string | The attachment ID to be used in HTML content as <img src="cid:attachment"/> . |
Return
( SMTP )
Current SMTP object.
_smtp.attachment(name: string, type: string, file: File, contentId: string, inline: boolean) : SMTP
Description
Add attachment file to e-mail.
Attributes
NAME | TYPE | DESCRIPTION |
---|---|---|
name | string | The name of the attachment. |
type | string | The content type of the attachment, for example image/png, text/html, application/zip, and many others... |
file | File | The file. |
contentId | string | The attachment ID to be used in HTML content as <img src="cid:attachment"/> . |
inline | boolean | Whether or not to be injected into the content. |
Return
( SMTP )
Current SMTP object.