diff --git a/modules/smtp/doc_classes/EMail.xml b/modules/smtp/doc_classes/EMail.xml index 45758ceb8..1bca7a047 100644 --- a/modules/smtp/doc_classes/EMail.xml +++ b/modules/smtp/doc_classes/EMail.xml @@ -77,11 +77,6 @@ - - - - - @@ -146,16 +141,12 @@ - - - - - - + + diff --git a/modules/smtp/doc_classes/SMTPClient.xml b/modules/smtp/doc_classes/SMTPClient.xml index 2f70459c9..6e06d8b11 100644 --- a/modules/smtp/doc_classes/SMTPClient.xml +++ b/modules/smtp/doc_classes/SMTPClient.xml @@ -55,5 +55,15 @@ + + + + + + + + + + diff --git a/modules/smtp/smtp_client.cpp b/modules/smtp/smtp_client.cpp index 574dcaa5c..97223a4dd 100644 --- a/modules/smtp/smtp_client.cpp +++ b/modules/smtp/smtp_client.cpp @@ -725,4 +725,11 @@ void SMTPClient::_bind_methods() { ADD_PROPERTY(PropertyInfo(Variant::INT, "thread_sleep_usec"), "set_thread_sleep_usec", "get_thread_sleep_usec"); ClassDB::bind_method(D_METHOD("send_email", "email"), &SMTPClient::send_email); + + BIND_ENUM_CONSTANT(TLS_METHOD_NONE); + BIND_ENUM_CONSTANT(TLS_METHOD_STARTTLS); + BIND_ENUM_CONSTANT(TLS_METHOD_SMTPS); + + BIND_ENUM_CONSTANT(SERVER_AUTH_PLAIN); + BIND_ENUM_CONSTANT(SERVER_AUTH_LOGIN); }