Erro de retorno -10 na função MAIL_Send
import ctypes
lib = ctypes.cdll.LoadLibrary(r'D:\KAIQUE\TESTE\ACBrMail64.dll')
print("1", lib.MAIL_Inicializar(r'D:\KAIQUE\TESTE\kaique.ini'.encode("utf-8"), "".encode("utf-8")))
print("2", lib.MAIL_ConfigGravarValor("Email".encode("utf-8"), "Nome".encode("utf-8"), "Atacado Silveira".encode("utf-8")))
print("3", lib.MAIL_ConfigGravarValor("Email".encode("utf-8"), "Conta".encode("utf-8"), "
[email protected]".encode("utf-8")))
print("4", lib.MAIL_ConfigGravarValor("Email".encode("utf-8"), "Usuario".encode("utf-8"), "Atacado Silveira".encode("utf-8")))
print("5", lib.MAIL_ConfigGravarValor("Email".encode("utf-8"), "Senha".encode("utf-8"), "senha_conta".encode("utf-8")))
print("6", lib.MAIL_ConfigGravarValor("Email".encode("utf-8"), "Servidor".encode("utf-8"), "smtp.office365.com".encode("utf-8")))
print("7", lib.MAIL_ConfigGravarValor("Email".encode("utf-8"), "Porta".encode("utf-8"), "587".encode("utf-8")))
print("8", lib.MAIL_ConfigGravarValor("Email".encode("utf-8"), "SSL".encode("utf-8"), "0".encode("utf-8")))
print("9", lib.MAIL_ConfigGravarValor("Email".encode("utf-8"), "TLS".encode("utf-8"), "1".encode("utf-8")))
print("10", lib.MAIL_Clear())
print("11", lib.MAIL_SetSubject("KAIQUE TESTE".encode("utf-8")))
print("12", lib.MAIL_AddAddress("
[email protected]".encode("utf-8"), "Kaique Afonso".encode("utf-8")))
print("13", lib.MAIL_AddBody("KAIQUE TETEFSDJFKLÇGJSDFGKSDFKÇGD".encode("utf-8")))
print("14", lib.MAIL_Send(0))
print("15", lib.MAIL_Finalizar())
print("FOI")
Prints dos retornos, número 14 é o retorno da função MAIL_Send(). Obs: O Email Não Foi Enviado