MicroStrategy ONE

Create Email Device statement

Creates an email device. A Distribution Services email device is used to automatically send a report or document in the form of an email to an email address. It can also send the report in the form of a user-selected file format as an attachment with the email. The device is based on a transmitter in the system.

Copy
CREATE EMAILDEVICE "device_name" TRANSMITTER "transmitter_name" [DESCRIPTION "description"] [EMAILFORMAT (UUENCODE | MIME [BODYENCODE (BASE64 
 | QUOTEDPRINT | BIT7)] [TEXTENCODE (BASE64 | QUOTEDPRINT)] [BINARYENCODE 
 (BASE64 | QUOTEDPRINT)] [USEASCIINAMESONLY (TRUE | FALSE)] [REMOVEQUOTESAROUNDDISPLAYNAME 
 (TRUE | FALSE)] [EMBEDHTMLATTACHMENT (TRUE | FALSE)] [EMBEDALLATTACHMENT 
 (TRUE | FALSE)] [FLASHCONTENT (TRUE | FALSE)] [HTMLFORPOSITION (TRUE | 
 FALSE)] [USEINLINESTYLECSS (TRUE | FALSE)] [SENSITIVITY (NORMAL | PERSONAL 
 | PRIVATE | CONFIDENTIAL)])] [[SERVER "server_name"] [PORT port] [USESMARTHOST (TRUE 
 | FALSE)]];

where:

  • EMAILDEVICE "device_name" is the name of the email device to create, of type string.

  • TRANSMITTER "transmitter_name" is the transmitter that the new device is an instance of and is based on, of type string. This should be the name of an email transmitter in the system.

  • DESCRIPTION "description" is the device description, of type string.

  • EMAILFORMAT is the format of the emails to send. Choose one of the following:

    • UUENCODE is an email format to be used for any email client or gateway that does not support MIME.

    • MIME is an email format that supports advanced capabilities such as multiple email bodies and character sets, sensitivity settings, and more. If you specify MIME, configure the following:

      • BODYENCODE is the encoding type for emails with plain text and HTML email bodies.

      • BASE64 is an encoding type that is strongly recommended for any binary, image, or multibyte character set data.

      • QUOTEDPRINT is the quoted-printable encoding type. It preserves most printable characters and encodes only nonprintable or special characters. This type cannot be used for binary data. This is the default if you do not specify an encoding type.

      • BIT7 is the 7-bit ASCII encoding type. It is used for representing characters as binary numbers.

      • TEXTENCODE is the encoding type for emails with text file attachments. The options are BASE64 and QUOTEDPRINT. BASE64 is the default.

      • BINARYENCODE is the encoding type for emails with binary file attachments, such as PDF, CSV, Excel, Flash dashboard, and so on. The options are BASE64 and QUOTEDPRINT. BASE64 is the default.

      • USEASCIINAMESONLY indicates whether to use US-ASCII for the subject line, names of attached files, and the address display names on devices that do not support the use of other character sets for those sections.

      • REMOVEQUOTESAROUNDDISPLAYNAME indicates whether to remove quotes around display names for email clients that add an extra set of quotes around the decoded string. This should be used for Microsoft Outlook 98 and Microsoft Outlook 2000 email clients.

      • EMBEDHTMLATTACHMENT indicates whether HTML attachments should be embedded in the email body.

      • EMBEDALLATTACHMENT indicates whether to embed all attachments in the email body.

      • FLASHCONTENT indicates whether to support Flash content in the body of the email.

      • HTMLFORPOSITION indicates whether to use HTML tables for formatting HTML email. This should be set to True if Microsoft Outlook 2007 is your email client.

      • USEINLINESTYLECSS indicates whether to use an inline CSS instead of an external CSS. If Gmail is your email client, set to True.

      • SENSITIVITY is the sensitivity of the emails to send. If your email client allows users to apply a sensitivity setting to an email being sent, using one of these options places a message at the top of emails sent through Distribution Services. The message appears in the header bar of the email and is similar to the following: "Treat this as Confidential." The message may differ depending on your email client. Using NORMAL does not apply any sensitivity message in an email's header, even if a sensitivity level is applied to the email being sent by the user. Choose one of the following: NORMAL, PERSONAL, PRIVATE, or CONFIDENTIAL.

  • SERVER "server_name" is the server name or IP address of the smart host, of type string.

  • PORT port is the port number of the smart host, of type numeric.

  • USESMARTHOST indicates whether you want to use only the smart host to send email. If FALSE, email is sent directly to the email host of each recipient, and the smart host is used only if the direct connection fails.

Example

Copy
CREATE EMAILDEVICE "Webmail" TRANSMITTER 
 "Email" EMAILFORMAT MIME USEASCIINAMESONLY TRUE EMBEDHTMLATTACHMENT 
 TRUE;