EmailSender.sendEmail

Spawns a child process that sends an email using sendmail.

Accepts 2D arrays for the recipient list, cc list, and bcc list, automatically comma-separates them, and passes them to the other overload of this method. Use this method if it is more convenient for you to pass the required lists in 2D buffers, rather than in comma-separated 1D buffers as required by sendmail.

  1. bool sendEmail(cstring sender, cstring[] recipients, cstring subject, cstring msg_body, cstring reply_to, cstring mail_id, cstring[] cc, cstring[] bcc)
    class EmailSender
    bool
    sendEmail
  2. bool sendEmail(cstring sender, cstring recipients, cstring subject, cstring msg_body, cstring reply_to, cstring mail_id, cstring cc, cstring bcc)

Parameters

sender cstring

the sender of the email

recipients cstring[]

the recipient(s) of the email

subject cstring

the email subject

msg_body cstring

the email body

reply_to cstring

an optional Reply To. default empty

mail_id cstring

an optional mail id/In-Reply-To. default empty

cc cstring[]

an optional cc. default empty

bcc cstring[]

an optional bcc. default empty

Return Value

Type: bool

true if the mail was sent without any errors, otherwise false

Meta