DSE Send Email (console) : Usage

How to use the DSE Send Email (console) app.

DseSendEmailCmd [/to:<list-of-recipients-or-destination-aliases>] [/cc:<list-of-recipients-or-destination-aliases>] [/bcc:<list-of-recipients-or-destination-aliases>] [/dst:<list-of-recipients>] [/subject:<email-subject>] [/body:<email-body>] [/bodyFile:<email-body-file-path>] [/attach:<attachment-file-path>] [/sendMethod:<method>] [/oAuth2Host:<do-not-use>] [/serverName:<server-name-or-ip-address>] [/serverPort:<server-port-number>] [/userDisplayName:<friendly-user-name>] [/userName:<sender’s-email-address>] [/userPassword:<sender’s-password>] [/oAuthRes1:<reserved>] [/oAuthRes2:<reserved>] [/p:<password>] [/pr:<password-repeated>] [/send] [/html] [/noSsl] [/o] [/unicode] [/q] [/extEmlDb:<db-file-path>] [/emlDbPwd:<db-password>] [/emlAlias:<alias>] [/setEmlAlias:<alias>] [/deleteEmlAlias:<alias>] [/exportEmls:<db-file-path>] [/importEmls:<db-file-path>] [/setEmlDbPwd] [/listAllEmlAliases] [/deleteAllEmlAliases] [/extDstDb:<db-file-path>] [/dstDbPwd:<db-password>] [/dstAlias:<alias>] [/setDstAlias:<alias>] [/deleteDstAlias:<alias>] [/exportDsts:<db-file-path>] [/importDsts:<db-file-path>] [/setDstDbPwd] [/listAllDstAliases] [/deleteAllDstAliases]

/to: Comma separated list of recipients, or destination aliases (can be used only when sending an email).

/cc: Comma separated list of recipients, or destination aliases (can be used only when sending an email).

/bcc: Comma separated list of recipients, or destination aliases (can be used only when sending an email).

/dst: Comma separated list of recipients (must be used only when defining a destination).

/subject: Message subject (can be used only when sending an email).

/body: Message body (can be used only when sending an email).

/bodyFile: File containing message body (can be used only when sending an email).

/attach: A file to attach to the email (can be used multiple times, but only when sending an email).

/sendMethod: Currently only SMTP is supported. Windows and OAuth2 are coming in the near future.

/oAuth2Host: Not yet implemented, do not use.

/serverName: Email server (e.g. smtp.mail.yahoo.com).

/serverPort: Usually this is 465 or 587 for encrypted connections, and 25 for unencrypted connections.

/userDisplayName: Friendly sender’s name (e.g. John Doe).

/userName: Usually this is the sender’s email address (e.g. someone@server.com).

/userPassword: Sender’s password (e.g. the password used to log in to Yahoo! mail, or GMail).

/oAuthRes1: Reserved, do not use.

/oAuthRes2: Reserved, do not use.

/p: Password (used when creating a database of email configurations or destinations). Case sensitive.

/pr: Repeating the password is optional.

/send Sends an email.

/html Specifies that the email’s body is in html format.

/noSsl Disables ssl/tls encrypted connection (encryption is on by default).

/o Overwrites the output file if it already exists. This is used when exporting email configurations or destinations.

/unicode Forces Unicode encoding (by default the email is UTF-8 encoded).

/q Quiet mode.

/extEmlDb: Path to an external email configuration database to be used instead of the internal one.

/emlDbPwd: The password of the email configuration database (internal or external). Case sensitive.

/emlAlias: Email configuration alias (case insensitive). The alias of an email configuration is a name given to it (e.g. MyYahooAccount).

/setEmlAlias: Sets or changes an email configuration (sever, port, username, password).

/deleteEmlAlias: Deletes an email configuration.

/exportEmls: Exports email configurations.

/importEmls: Imports email configurations.

/setEmlDbPwd Creates or changes the password for an email configuration database. Changing the password causes the database to be decrypted and then re-encrypted with a key and initialization vector derived from the new password.

/listAllEmlAliases Lists all email configurations in a database.

/deleteAllEmlAliases Deletes all email configurations in the internal database. For an external database, simply delete the file.

/extDstDb: Path to an external destination database to be used instead of the internal one.

/dstDbPwd: The password of the destination database (internal or external). Case sensitive.

/dstAlias: Destination alias (case insensitive). The alias of a destination is a name given to it (e.g. MyGroupOfFriends).

/setDstAlias: Sets or changes a destination (a list of recipients).

/deleteDstAlias: Deletes a destination.

/exportDsts: Exports destinations.

/importDsts: Imports destinations.

/setDstDbPwd Creates or changes the password for a destination database. Changing the password causes the database to be decrypted and then re-encrypted with a key and initialization vector derived from the new password.

/listAllDstAliases Lists all destinations in a database.

/deleteAllDstAliases Deletes all destinations in the internal database. For an external database, simply delete the file.

Examples:

Sending emails using inline server configuration and inline recipients:

DseSendEmailCmd /send /sendMethod:smtp /serverName:smtp.mail.yahoo.com /serverPort:587 /userName:user@yahoo.com /userDisplayName:”The User” /userPassword:123 /to:john@server.com /cc:”John Doe <jdoe@server.com>” /bcc:”mary@server.com, Jane Doe <jane@server.com>” /subject:”The subject” /body:”This is the body”

DseSendEmailCmd /send /sendMethod:smtp /serverName:smtp.mail.yahoo.com /serverPort:587 /userName:user@yahoo.com /userDisplayName:”The User” /userPassword:123 /to:john@server.com /cc:”John Doe <jdoe@server.com>” /bcc:”mary@server.com, Jane Doe <jane@server.com>” /subject:”The subject” /body:”This is the <b>body</b>” /html

DseSendEmailCmd /send /sendMethod:smtp /serverName:smtp.mail.yahoo.com /serverPort:587 /userName:user@yahoo.com /userDisplayName:”The User” /userPassword:123 /to:john@server.com /cc:”John Doe <jdoe@server.com>” /bcc:”mary@server.com, Jane Doe <jane@server.com>” /subject:”The subject” /bodyFile:C:\email.txt

DseSendEmailCmd /send /sendMethod:smtp /serverName:smtp.mail.yahoo.com /serverPort:587 /userName:user@yahoo.com /userDisplayName:”The User” /userPassword:123 /to:john@server.com /cc:”John Doe <jdoe@server.com>” /bcc:”mary@server.com, Jane Doe <jane@server.com>” /subject:”The subject” /bodyFile:C:\email.html /html

DseSendEmailCmd /send /sendMethod:smtp /serverName:smtp.mail.yahoo.com /serverPort:587 /userName:user@yahoo.com /userDisplayName:”The User” /userPassword:123 /to:john@server.com /cc:”John Doe <jdoe@server.com>” /bcc:”mary@server.com, Jane Doe <jane@server.com>” /subject:”The subject” /body:”This is the body” /attach:c:\file1.txt /attach:c:\file2.zip

DseSendEmailCmd /send /sendMethod:smtp /serverName:smtp.mail.yahoo.com /serverPort:587 /userName:user@yahoo.com /userDisplayName:”The User” /userPassword:123 /to:john@server.com /cc:”John Doe <jdoe@server.com>” /bcc:”mary@server.com, Jane Doe <jane@server.com>” /subject:”The subject” /body:”This is the <b>body>/b>” /html /attach:c:\file1.txt /attach:c:\file2.zip

DseSendEmailCmd /send /sendMethod:smtp /serverName:smtp.mail.yahoo.com /serverPort:587 /userName:user@yahoo.com /userDisplayName:”The User” /userPassword:123 /to:john@server.com /cc:”John Doe <jdoe@server.com>” /bcc:”mary@server.com, Jane Doe <jane@server.com>” /subject:”The subject” /bodyFile:C:\email.txt /attach:c:\file1.txt /attach:c:\file2.zip

DseSendEmailCmd /send /sendMethod:smtp /serverName:smtp.mail.yahoo.com /serverPort:587 /userName:user@yahoo.com /userDisplayName:”The User” /userPassword:123 /to:john@server.com /cc:”John Doe <jdoe@server.com>” /bcc:”mary@server.com, Jane Doe <jane@server.com>” /subject:”The subject” /bodyFile:C:\email.html /html /attach:c:\file1.txt /attach:c:\file2.zip

Creating an internal email configuration database:

DseSendEmailCmd /setEmlDbPwd /p:<new-internal-db-password>

The email configuration database is different from the destination database. Each has its own password.

Changing the password of the internal email configuration database:

DseSendEmailCmd /setEmlDbPwd /emlDbPwd:<old-internal-db-password> /p:<new-internal-db-password>

Adding an email configuration to the internal email configuration database:

DseSendEmailCmd /emlDbPwd:<internal-db-password> /setEmlAlias:alias1 /sendMethod:smtp /serverName:smtp.mail.yahoo.com /serverPort:587 /userName:user@yahoo.com /userDisplayName:”The User” /userPassword:<password-used-to-log-in-to-yahoo-mail>

Listing all email configurations in the internal email configuration database:

DseSendEmailCmd /emlDbPwd:<internal-db-password> /listAllEmlAliases

Deleting an email configuration:

DseSendEmailCmd /emlDbPwd:<internal-db-password> /deleteEmlAlias:alias1

Creating an external email configuration database:

DseSendEmailCmd /extEmlDb:<new-external-db-file> /setEmlDbPwd /p:<new-external-db-password>

Changing the password of an external email configuration database:

DseSendEmailCmd /extEmlDb:<external-db-file> /setEmlDbPwd /emlDbPwd:<old-external-db-password> /p:<new-external-db-password>

Adding an email configuration to an external email configuration database:

DseSendEmailCmd /extEmlDb:<external-db-file> /emlDbPwd:<external-db-password> /setEmlAlias:alias1 /sendMethod:smtp /serverName:smtp.mail.yahoo.com /serverPort:587 /userName:user@yahoo.com /userDisplayName:”The User” /userPassword:123

Listing all email configurations in an external email configuration database:

DseSendEmailCmd /extEmlDb:<external-db-file> /emlDbPwd:<external-db-password> /listAllEmlAliases

Deleting an email configuration:

DseSendEmailCmd /extEmlDb:<external-db-file> /emlDbPwd:<external-db-password> /deleteEmlAlias:alias1

Creating an internal destination database:

DseSendEmailCmd /setDstDbPwd /p:<new-internal-db-password>

The destination database is different from the email configuration database. Each of them has its own password.

Changing the password of the internal destination database:

DseSendEmailCmd /setDstDbPwd /dstDbPwd:<old-internal-db-password> /p:<new-internal-db-password>

Adding a destination to the internal destination database:

DseSendEmailCmd /dstDbPwd:<internal-db-password> /setDstAlias:dest1 /dst:”John <john@server.com>, mary@server.com”

Listing all destinations in the internal destination database:

DseSendEmailCmd /dstDbPwd:<internal-db-password> /listAllDstAliases

Deleting a destination:

DseSendEmailCmd /dstDbPwd:<internal-db-password> /deleteDstAlias:dest1

Creating an external destination database:

DseSendEmailCmd /extDstDb:<new-external-db-file> /setDstDbPwd /p:<new-external-db-password>

Changing the password of an external destination database:

DseSendEmailCmd /extDstDb:<external-db-file> /setDstDbPwd /dstDbPwd:<old-external-db-password> /p:<new-external-db-password>

Adding a destination to the external destination database:

DseSendEmailCmd /extDstDb:<external-db-file> /dstDbPwd:<external-db-password> /setDstAlias:dest1 /dst:”John <john@server.com>, mary@server.com”

Listing all destinations in the external destination database:

DseSendEmailCmd /extDstDb:<external-db-file> /dstDbPwd:<external-db-password> /listAllDstAliases

Deleting a destination from an external database:

DseSendEmailCmd /extDstDb:<external-db-file> /dstDbPwd:<external-db-password> /deleteDstAlias:dest1

Exporting email configurations from the internal database into a new external database:

DseSendEmailCmd /emlDbPwd:<source-db-password> /exportEmls:<target-db-file> /p:<target-db-password>

DseSendEmailCmd /emlDbPwd:<source-db-password> /exportEmls:<target-db-file> /p:<target-db-password> /emlAlias:”alias1, alias2, alias3″

Exporting email configurations from an external database into another new external database:

DseSendEmailCmd /extEmlDb:<source-db-file> /emlDbPwd:<source-db-password> /exportEmls:<target-db-file> /p:<target-db-password>

DseSendEmailCmd /extEmlDb:<source-db-file> /emlDbPwd:<source-db-password> /exportEmls:<target-db-file> /p:<target-db-password> /emlAlias:”alias1, alias2, alias3″

Exporting destinations from the internal database into a new externalDatabase:

DseSendEmailCmd /dstDbPwd:<source-db-password> /exportDsts:<target-db-file> /p:<target-db-password>

DseSendEmailCmd /dstDbPwd:<source-db-password> /exportDsts:<target-db-file> /p:<target-db-password> /dstAlias:”alias1, alias2, alias3″

Exporting destinations from an external database into another new external database:

DseSendEmailCmd /extDstDb:<source-db-file> /dstDbPwd:<source-db-password> /exportDsts:<target-db-file> /p:<target-db-password>

DseSendEmailCmd /extDstDb:<source-db-file> /dstDbPwd:<source-db-password> /exportDsts:<target-db-file> /p:<target-db-password> /dstAlias:”alias1, alias2, alias3″

Importing email configurations into the internal database:

DseSendEmailCmd /emlDbPwd:<target-db-password> /importEmls:<source-db-file> /p:<source-db-password>

DseSendEmailCmd /emlDbPwd:<target-db-password> /importEmls:<source-db-file> /p:<source-db-password> /emlAlias:al1

DseSendEmailCmd /emlDbPwd:<target-db-password> /importEmls:<source-db-file> /p:<source-db-password> /emlAlias:”al1, al2″

Importing email configurations into an external database:

DseSendEmailCmd /extEmlDb:<target-db-file> /emlDbPwd:<target-db-password> /importEmls:<source-db-file> /p:<source-db-password>

DseSendEmailCmd /extEmlDb:<target-db-file> /emlDbPwd:<target-db-password> /importEmls:<source-db-file> /p:<source-db-password> /emlAlias:al1

DseSendEmailCmd /extEmlDb:<target-db-file> /emlDbPwd:<target-db-password> /importEmls:<source-db-file> /p:<source-db-password> /emlAlias:”al1, al2″

Importing destinations into the internal database:

DseSendEmailCmd /dstDbPwd:<target-db-password> /importDsts:<source-db-file> /p:<source-db-password>

DseSendEmailCmd /dstDbPwd:<target-db-password> /importDsts:<source-db-file> /p:<source-db-password> /dstAlias:al1

DseSendEmailCmd /dstDbPwd:<target-db-password> /importDsts:<source-db-file> /p:<source-db-password> /dstAlias:”al1, al2″

Importing destinations into an external database:

DseSendEmailCmd /extDstDb:<target-db-file> /dstDbPwd:<target-db-password> /importDsts:<source-db-file> /p:<source-db-password>

DseSendEmailCmd /extDstDb:<target-db-file> /dstDbPwd:<target-db-password> /importDsts:<source-db-file> /p:<source-db-password> /dstAlias:al1

DseSendEmailCmd /extDstDb:<target-db-file> /dstDbPwd:<target-db-password> /importDsts:<source-db-file> /p:<source-db-password> /dstAlias:”al1, al2″

Sending email using pre-stored email server configurations and destinations:

DseSendEmailCmd /send /emlDbPwd:<internal-eml-db-password> dstDbPwd:<internal-dst-db-password> /emlAlias:alias1 /to:dest1 /cc:dest2 /bcc:dest3 /subject:”The Subject” /body:”The Body”

DseSendEmailCmd /send extEmlDb:<external-eml-db-file> /emlDbPwd:<external-eml-db-password> /extDstDb:<external-dst-db-file> /dstDbPwd:<external-dst-db-password> /emlAlias:alias1 /to:dest1 /cc:”dest2, dest3, me@outlook.com” /subject:”The Subject” /body:”The <b<Body</b>” /html /attach:c:\file.txt

Leave a comment

Design a site like this with WordPress.com
Get started