From 4a35fb9b4413ec8cee774821cb52ad71694c7866 Mon Sep 17 00:00:00 2001 From: Relintai Date: Thu, 11 Jan 2024 00:32:10 +0100 Subject: [PATCH] Docs for the new classes. --- modules/smtp/doc_classes/EMail.xml | 28 +++++++++++++++++++++++++ modules/smtp/doc_classes/SMTPClient.xml | 22 +++++++++++++++++++ 2 files changed, 50 insertions(+) diff --git a/modules/smtp/doc_classes/EMail.xml b/modules/smtp/doc_classes/EMail.xml index 1bca7a047..4c16ffade 100644 --- a/modules/smtp/doc_classes/EMail.xml +++ b/modules/smtp/doc_classes/EMail.xml @@ -1,8 +1,10 @@ + Class that is used by the [SMTPClient] to send emails. + Class that is used by the [SMTPClient] to send emails. @@ -12,6 +14,7 @@ + Add an address to the Cc section of an email. @@ -19,33 +22,39 @@ + Add an address to the recipients of an email. + Returns a cc's email address. + Return how many cc is set. + Helper emthod. Returns cc addresses formatted for the smtp protocoll. + Returns a cc's name. + Returns all ccs. @@ -53,45 +62,53 @@ + Helper emthod. Returns the email's body formatted for the smtp protocoll. + Returns a recipient's email address. + Return how many recipient is set. + Returns a recipient's name. + Returns all recipients. + Helper emthod. Returns the target addresses formatted for the smtp protocoll. + Removes a cc. + Removes a recipient. @@ -99,6 +116,7 @@ + Set a recipient's email address. @@ -106,12 +124,14 @@ + Set a cc's name. + Set all ccs. Should countain arrays of size 2. index 0 is address, index 1 is email. @@ -119,6 +139,7 @@ + Set a recipient's email address. @@ -126,12 +147,14 @@ + Set a recipient's name. + Set all recipients. Should countain arrays of size 2. index 0 is address, index 1 is email. @@ -139,17 +162,22 @@ + Shorthand for setting [member sender_address], and [member sender_personal]. + The email's body. + The email's sender address. If you leave it empty the server default is used. + The email's sender name. If you leave it empty the server default is used. + The email's subject. diff --git a/modules/smtp/doc_classes/SMTPClient.xml b/modules/smtp/doc_classes/SMTPClient.xml index 6e06d8b11..aaf9d0a4d 100644 --- a/modules/smtp/doc_classes/SMTPClient.xml +++ b/modules/smtp/doc_classes/SMTPClient.xml @@ -1,8 +1,10 @@ + An SMTP Client Node. + A Node that can be used to send emails using the SMTP protocol. @@ -11,59 +13,79 @@ + Send an email. + Client id that will be sent to the server. Not an account, it's an arbitrary value. Should not be empty. + This is the address from where the email will come if you don't override it using [class EMail]. + This is the dislpayed name of the address from where the email will come if you don't override it using [class EMail]. + The smtp server's host. + The smtp server's port. + What authentication method the server uses. + The server's account's password. + The server's account's username. + When using threading the worker thread will wait this much time between 2 polls. 1 msec = 1000 usec. + How to set up encryption with the server. + Whether to use threading or not. + Emitted when an email is successfully sent. + Emitted when sending an email encountered an error. + Emitted when a email either successully sent, or encountered an error. + No encryption. Username / Password will be sent without encryption. Not recommended if you don't know what you are doing. Usual port: 587. + Connect, then use the STARTTLS command, and upgarde to using SSL. Usual port: 587. + Connect, and immediately just set up SSL. The best option. Use this whenever you can. Usual port: 465. + Server does not need authentication. + Server needs account and password.