Skip to content

Commit

Permalink
Bind the send_mail method.
Browse files Browse the repository at this point in the history
  • Loading branch information
Relintai committed Dec 22, 2023
1 parent 2bd9eb6 commit 094b1fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/web/smtp/smtp_client.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 094b1fe

Please sign in to comment.