I'm trying to send email with net library and SMTP
but i get the following error :
java.lang.RuntimeException: Empty writer returned: 503 Bad sequence of commands
I use my own mailserver , it does not require ssl , I can send email with my c# code , ie. the mailserver works fine.
the b4a code is simple :
and i can send email with gmail smtp server but usually I get the timeout error , so that I want to use my own mail server.
any idea ? is something wrong with net library?
I read a same issue in forum : SMTP 503 error in Net library , but it didnt help.
but i get the following error :
java.lang.RuntimeException: Empty writer returned: 503 Bad sequence of commands
I use my own mailserver , it does not require ssl , I can send email with my c# code , ie. the mailserver works fine.
the b4a code is simple :
B4X:
SMTP.Initialize("MySMTPHost" , 587 , "MyAccount" , "MyPass" , "SMTP")
SMTP.Subject = "Test"
SMTP.To.Add("ToAddress")
SMTP.Sender = "FromAddress"
SMTP.Body = "this is a Test "
SMTP.HtmlBody = False
SMTP.AddAttachment(File.DirRootExternal & "/Files" , "somefile.dat")
and i can send email with gmail smtp server but usually I get the timeout error , so that I want to use my own mail server.
any idea ? is something wrong with net library?
I read a same issue in forum : SMTP 503 error in Net library , but it didnt help.