Skip to main content

Operation

Operation Syntax

After the configuration have been updated and the credentials are set (using the --credential operation), the program is ready to run. To run the utility, use the following operation syntax:

smartemail.exe ((--msal (--renewMsalToken (--renewTokenSilent | --doNotSaveAccount))) | ((-server:[value]) (-port:[value]) --[pop|imap] (--[ssl|tls1_1|tls1_2])) (--delete)

Note

[|] indicates mutually exclusive options.

Operation Arguments

The SMArt Email (Smartemail.exe) supports the following arguments:

ArgumentRequired?Value
-serverYUse this argument to define the email server IP address or hostname. You may specify this also directly in the configuration file.
-portYUse this argument to define the port number for the email server. It defaults to standard ports and can also be specified in the configuration file.
--popYUse this argument to define a POP email protocol.
--imapYUse this argument to define an IMAP email protocol.
--sslNUse this argument to use SSL 3.0 with a selected mail protocol. The port number has to apply to this level of encryption; otherwise, the communication will not be established.
--tls1_1NUse this argument to use TLS 1.1 with a selected mail protocol. The port number has to apply to this level of encryption; otherwise, the communication will not be established.
--tls1_2NUse this argument to use TLS 1.2 with a selected mail protocol. The port number has to apply to this level of encryption; otherwise, the communication will not be established.
--deleteNUse this argument if you want to delete emails after processing. This option only works when using the IMAP email protocol.
--msalYUse this argument to define a MSAL email protocol.
--renewMsalTokenNUsed to interactively acquire a new token and/or assign a different account to be used by SMArtEmail.
--renewTokenSilentNUsed in conjunction with --renewMsalToken, if the refresh token is still valid (~1 week) this can be used to refresh the token and keep it alive longer.
--doNotSaveAccountNUsed in conjunction with --renewMsalToken, if you would like to prevent storing a token to an account on this machine. Typically used to prevent saving an access token to an Administrator's email.