Bind the send_mail method.

This commit is contained in:
Relintai 2023-12-23 00:53:42 +01:00
parent 2bd9eb6468
commit 094b1fe752

View File

@ -619,6 +619,8 @@ void SMTPClient::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_use_threads", "val"), &SMTPClient::set_use_threads);
ADD_PROPERTY(PropertyInfo(Variant::BOOL, "use_threads"), "set_use_threads", "get_use_threads");
ClassDB::bind_method(D_METHOD("send_mail", "address", "subject", "message"), &SMTPClient::send_mail);
BIND_ENUM_CONSTANT(AUTH_TYPE_PLAINTEXT);
BIND_ENUM_CONSTANT(AUTH_TYPE_STARTTLS);
BIND_ENUM_CONSTANT(AUTH_TYPE_SMTPS);