Não foi gerado LOG na pasta configurada, e ainda alterando o nome de Usuario não foi feito o envio
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"), "
[email protected]".encode("utf-8")))
print("5", lib.MAIL_ConfigGravarValor("Email".encode("utf-8"), "Senha".encode("utf-8"), "minha_senha".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("LEITURA ->", lib.MAIL_ConfigLer(r'D:\KAIQUE\TESTE\kaique.ini'.encode("utf-8")))
print("16", lib.MAIL_ConfigGravarValor("Principal".encode("utf-8"), "LogNivel".encode("utf-8"), "4".encode("utf-8")))
print("17", lib.MAIL_ConfigGravarValor("Principal".encode("utf-8"), "LogPath".encode("utf-8"), r"D:\KAIQUE\TESTE\LOG.txt".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".encode("utf-8")))
print("15", lib.MAIL_Finalizar())
print("FIM")
1 0
2 0
3 0
4 0
5 0
6 0
7 0
8 0
9 0
LEITURA -> 0
16 0
17 0
10 0
11 0
12 0
13 0
14 -10
15 0
FIM
____
o print(14) ainda continua retornando -10