2024-01-10 20:15:05 +01:00
|
|
|
<?xml version="1.0" encoding="UTF-8" ?>
|
2024-02-25 10:26:26 +01:00
|
|
|
<class name="SMTPClient" inherits="Node" version="4.3">
|
2024-01-10 20:15:05 +01:00
|
|
|
<brief_description>
|
2024-01-11 00:32:10 +01:00
|
|
|
An SMTP Client Node.
|
2024-01-10 20:15:05 +01:00
|
|
|
</brief_description>
|
|
|
|
<description>
|
2024-01-11 00:32:10 +01:00
|
|
|
A Node that can be used to send emails using the SMTP protocol.
|
2024-01-10 20:15:05 +01:00
|
|
|
</description>
|
|
|
|
<tutorials>
|
|
|
|
</tutorials>
|
|
|
|
<methods>
|
2024-01-11 00:03:31 +01:00
|
|
|
<method name="send_email">
|
|
|
|
<return type="void" />
|
|
|
|
<argument index="0" name="email" type="EMail" />
|
|
|
|
<description>
|
2024-01-11 00:32:10 +01:00
|
|
|
Send an email.
|
2024-01-11 00:03:31 +01:00
|
|
|
</description>
|
|
|
|
</method>
|
2024-01-10 20:15:05 +01:00
|
|
|
</methods>
|
2024-01-11 00:03:31 +01:00
|
|
|
<members>
|
|
|
|
<member name="client_id" type="String" setter="set_client_id" getter="get_client_id" default=""smtp.pandemoniumengine.org"">
|
2024-01-11 00:32:10 +01:00
|
|
|
Client id that will be sent to the server. Not an account, it's an arbitrary value. Should not be empty.
|
2024-01-11 00:03:31 +01:00
|
|
|
</member>
|
|
|
|
<member name="email_default_sender_email" type="String" setter="set_email_default_sender_email" getter="get_email_default_sender_email" default="""">
|
2024-02-25 23:36:25 +01:00
|
|
|
This is the address from where the email will come if you don't override it using [EMail].
|
2024-01-11 00:03:31 +01:00
|
|
|
</member>
|
|
|
|
<member name="email_default_sender_name" type="String" setter="set_email_default_sender_name" getter="get_email_default_sender_name" default="""">
|
2024-02-25 23:36:25 +01:00
|
|
|
This is the dislpayed name of the address from where the email will come if you don't override it using [EMail].
|
2024-01-11 00:03:31 +01:00
|
|
|
</member>
|
|
|
|
<member name="host" type="String" setter="set_host" getter="get_host" default="""">
|
2024-01-11 00:32:10 +01:00
|
|
|
The smtp server's host.
|
2024-01-11 00:03:31 +01:00
|
|
|
</member>
|
|
|
|
<member name="port" type="int" setter="set_port" getter="get_port" default="465">
|
2024-01-11 00:32:10 +01:00
|
|
|
The smtp server's port.
|
2024-01-11 00:03:31 +01:00
|
|
|
</member>
|
|
|
|
<member name="server_auth_method" type="int" setter="set_server_auth_method" getter="get_server_auth_method" enum="SMTPClient.ServerAuthMethod" default="1">
|
2024-01-11 00:32:10 +01:00
|
|
|
What authentication method the server uses.
|
2024-01-11 00:03:31 +01:00
|
|
|
</member>
|
|
|
|
<member name="server_auth_password" type="String" setter="set_server_auth_password" getter="get_server_auth_password" default="""">
|
2024-01-11 00:32:10 +01:00
|
|
|
The server's account's password.
|
2024-01-11 00:03:31 +01:00
|
|
|
</member>
|
|
|
|
<member name="server_auth_username" type="String" setter="set_server_auth_username" getter="get_server_auth_username" default="""">
|
2024-01-11 00:32:10 +01:00
|
|
|
The server's account's username.
|
2024-01-11 00:03:31 +01:00
|
|
|
</member>
|
|
|
|
<member name="thread_sleep_usec" type="int" setter="set_thread_sleep_usec" getter="get_thread_sleep_usec" default="10000">
|
2024-01-11 00:32:10 +01:00
|
|
|
When using threading the worker thread will wait this much time between 2 polls. 1 msec = 1000 usec.
|
2024-01-11 00:03:31 +01:00
|
|
|
</member>
|
|
|
|
<member name="tls_method" type="int" setter="set_tls_method" getter="get_tls_method" enum="SMTPClient.TLSMethod" default="2">
|
2024-01-11 00:32:10 +01:00
|
|
|
How to set up encryption with the server.
|
2024-01-11 00:03:31 +01:00
|
|
|
</member>
|
|
|
|
<member name="use_threads" type="bool" setter="set_use_threads" getter="get_use_threads" default="true">
|
2024-01-11 00:32:10 +01:00
|
|
|
Whether to use threading or not.
|
2024-01-11 00:03:31 +01:00
|
|
|
</member>
|
|
|
|
</members>
|
|
|
|
<signals>
|
|
|
|
<signal name="email_sent">
|
|
|
|
<description>
|
2024-01-11 00:32:10 +01:00
|
|
|
Emitted when an email is successfully sent.
|
2024-01-11 00:03:31 +01:00
|
|
|
</description>
|
|
|
|
</signal>
|
|
|
|
<signal name="error">
|
|
|
|
<argument index="0" name="error" type="Dictionary" />
|
|
|
|
<description>
|
2024-01-11 00:32:10 +01:00
|
|
|
Emitted when sending an email encountered an error.
|
2024-01-11 00:03:31 +01:00
|
|
|
</description>
|
|
|
|
</signal>
|
|
|
|
<signal name="result">
|
|
|
|
<argument index="0" name="content" type="Dictionary" />
|
|
|
|
<description>
|
2024-01-11 00:32:10 +01:00
|
|
|
Emitted when a email either successully sent, or encountered an error.
|
2024-01-11 00:03:31 +01:00
|
|
|
</description>
|
|
|
|
</signal>
|
|
|
|
</signals>
|
2024-01-10 20:15:05 +01:00
|
|
|
<constants>
|
2024-01-11 00:05:42 +01:00
|
|
|
<constant name="TLS_METHOD_NONE" value="0" enum="TLSMethod">
|
2024-01-11 00:32:10 +01:00
|
|
|
No encryption. Username / Password will be sent without encryption. Not recommended if you don't know what you are doing. Usual port: 587.
|
2024-01-11 00:05:42 +01:00
|
|
|
</constant>
|
|
|
|
<constant name="TLS_METHOD_STARTTLS" value="1" enum="TLSMethod">
|
2024-01-11 00:32:10 +01:00
|
|
|
Connect, then use the STARTTLS command, and upgarde to using SSL. Usual port: 587.
|
2024-01-11 00:05:42 +01:00
|
|
|
</constant>
|
|
|
|
<constant name="TLS_METHOD_SMTPS" value="2" enum="TLSMethod">
|
2024-01-11 00:32:10 +01:00
|
|
|
Connect, and immediately just set up SSL. The best option. Use this whenever you can. Usual port: 465.
|
2024-01-11 00:05:42 +01:00
|
|
|
</constant>
|
|
|
|
<constant name="SERVER_AUTH_PLAIN" value="0" enum="ServerAuthMethod">
|
2024-01-11 00:32:10 +01:00
|
|
|
Server does not need authentication.
|
2024-01-11 00:05:42 +01:00
|
|
|
</constant>
|
|
|
|
<constant name="SERVER_AUTH_LOGIN" value="1" enum="ServerAuthMethod">
|
2024-01-11 00:32:10 +01:00
|
|
|
Server needs account and password.
|
2024-01-11 00:05:42 +01:00
|
|
|
</constant>
|
2024-01-10 20:15:05 +01:00
|
|
|
</constants>
|
|
|
|
</class>
|