B4J Question 503 polite people say HELO first (email error)

Nokia

Active Member
Licensed User
Longtime User
I am getting this error when I try to send an email:

java.lang.RuntimeException: Empty writer returned: 503 polite people say HELO first.

does anybody know what I am missing?

B4X:
  If FirstTime Then
  SMTP.Initialize(strServerAdr, iPort, strUser, strPassword, "SMTP")
     Select Case iMode
       Case 1
       SMTP.StartTLSMode = True
       Case 2
         SMTP.UseSSL = True
     End Select
     
   Log(SMTP.UseSSL)
   Log(SMTP.StartTLSMode)
   
  End If
   'SMTP.AuthMethod = SMTP.AUTH_CRAM_MD5
  SMTP.To.Add(strTo)
  SMTP.Subject = "iNetStatus - Test message"
  SMTP.Body = "This is a test notification from iNetStatus software." &  _
         " This message Is sent To indicate the email setting for the software are correct"
  'SMTP.AddAttachment(File.DirRootExternal, "somefile")
  SMTP.Send
 

Nokia

Active Member
Licensed User
Longtime User
error messge:

java.lang.RuntimeException: Empty writer returned: 503 polite people say HELO first
at anywheresoftware.b4a.net.SMTPWrapper$1.run(SMTPWrapper.java:282)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)

java.lang.RuntimeException: Empty writer returned: 503 polite people say HELO first
 
Upvote 0

Nokia

Active Member
Licensed User
Longtime User
same server as allways.. Godaddy.com servers.. I don't know if they updated anything, but putting in the same setting as my outlook...
 
Upvote 0

Nokia

Active Member
Licensed User
Longtime User
ya.. I have tried the Auth_Plan, Auth_Login and Auth_Cram_md5, I still get the same response..
 
Upvote 0

Nokia

Active Member
Licensed User
Longtime User
I figured out the issue, it was my antivirus blocking some of the communication. when I turned off or added app to be excluded it now sends the emails..
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…