| RegLogGmailrConnector {shiny.reglog} | R Documentation |
RegLogConnector for email sending via emayili package
Description
With the use of this object, RegLogServer can send emails confirming the registration and containing code for password reset procedure.
Super class
shiny.reglog::RegLogConnector -> RegLogGmailrConnector
Public fields
mailsList containing default mail templates to use by default mail handlers for register and password reset
Methods
Public methods
Inherited methods
Method new()
Initialization of the object. Creates smtp server for email sending.
Usage
RegLogGmailrConnector$new( from, lang = "en", custom_txts = NULL, custom_handlers = NULL, custom_mails = NULL )
Arguments
fromCharacter containing content in
fromof the email.langcharacter specyfiyng which language to use for all texts generated in the UI. Defaults to 'en' for English. Currently 'pl' for Polish is also supported.
custom_txtsnamed list containing character strings with custom messages. Defaults to NULL, so all built-in strings will be used.
custom_handlersnamed list of custom handler functions. Custom handler should take arguments:
selfandprivate- relating to the R6 object andmessageof classRegLogConnectorMessage. It should return returnRegLogConnectorMessageobject.custom_mailsnamed list containing character strings of the same structure as elements in the
mailsfield. Not all elements need to be present.
Details
default mails are used by register_mail and reset_pass_mail
handlers. To change the mail used by these handlers you can pass character
strings to the custom_mail argument during initialization or append them
directly into this list.
They are stored (and should be passed accordingly) in a list of structure:
register
subject
body
resetPass
subject
body
credsEdit
subject
body
Method clone()
The objects of this class are cloneable with this method.
Usage
RegLogGmailrConnector$clone(deep = FALSE)
Arguments
deepWhether to make a deep clone.
See Also
Other mailConnectors:
RegLogEmayiliConnector