Generate the same amout of codes as distinct mail adresses and stores them to the list file This function also includes previously used tokens to prevent duplicate tokens. Rejects if matchfile cannot be saved.
Callback to resolve promise
Callback to reject promise
list of mail adresses
Main configuration object This Function uses the following variables: usedTokens -> List of previosly used tokens outFileMatch -> Path to match file
Main safe used for logging and storing data
Main function used to generate and deliver codes
Main configuration object
Main safe used for logging and storing data
used codes and processed mails
Reads template file and compiles template. Iterate through mails and codes, randomly assign code to mail and send mail to recipient. If dryrun is enabled, mails will not be sent and new mails won't be included in return. Rejects if template cannot be read.
Name of recpipient
Mail of recpipient
Code of recpipient
compiled mail template
Mailserver settings
Main configuration object This Function uses the following variables: mail.auth.user -> sender mail adress mailFrom -> sender mail ailas dryrun -> Boolean value. If true no mails will be sent.
Main safe used for logging and storing data
Reads template file and compiles template. Iterate through mails and codes, randomly assign code to mail and send mail to recipient. If dryrun is enabled, mails will not be sent and new mails won't be included in return. Rejects if template cannot be read.
Callback to resolve promise
Callback to reject promise
list of mail adresses
list of generated codes
Main configuration object This Function uses the following variables: htmlPath -> Path to html template dryrun -> Boolean value. If true no mails will be sent and list won't be updated. force -> Boolean value. If true all mails are resent. usedTokens -> Array of Strings. Specifies already used tokens adresses. usedMails -> Array of Strings. Specifies already served mail adresses. mail -> mailserver settings
Main safe used for logging and storing data
Generated using TypeDoc
Namespace containing the code for Generating the Code and delivering the mails