gmailr_custom_mail_handler: Gmailr custom email sending handler

View source: R/mail_handlers.R

gmailr_custom_mail_handlerR Documentation

Gmailr custom email sending handler

Description

Default handler function parsing and sending email. Used within object of RegLogGmailrConnector class internally. It can send custom emails using subject, body and attachments from RegLogConnectorMessage of type custom_mail.

Usage

gmailr_custom_mail_handler(self, private, message)

Arguments

self

R6 object element

private

R6 object element

message

RegLogConnectorMessage which should contain within its data:

  • process

  • username

  • email

  • mail_subject

  • mail_body

  • mail_attachment (optional, needs to be of class mailMessageAttachment)

Value

RegLogGmailrConnector message.

See Also

Other mail handler functions: emayili_custom_mail_handler(), emayili_reglog_mail_handler(), gmailr_reglog_mail_handler()


shiny.reglog documentation built on Aug. 31, 2022, 1:06 a.m.