Help...suddenly I`m struggling to get SMTP email to work, it's giving me the following error (although I have 1 'To' and 1 'CC' address)?
Logs:
B4X:
Dim SMTP1 As SMTP
SMTP1.Initialize("mail.xx.xxx", xx, "info@xx.xx", "xx", "SMTP1")
SMTP1.UseSSL = false 'Gmail requires SSL.
SMTP1.StartTLSMode = False
SMTP1.Sender = "info@xx.xx"
SMTP1.To.Add("info@xx.xx")
SMTP1.CC.Add("james@xx.xx")
SMTP1.HtmlBody = True
SMTP1.Subject = "RAID Quiz"
SMTP1.Body = email_mess
SMTP1.Send
Wait For (SMTP1.Send) SMTP_MessageSent(Success As Boolean)
ToastMessageShow(Success & ", " & LastException,False)
Logs:
B4X:
180001
** Activity (chat) Resume **
External Storage - OK
Discovered server: 192.168.1.51
Error occurred on line: 294 (Chat)
java.lang.RuntimeException: To must include at least one recipient.
at anywheresoftware.b4a.net.SMTPWrapper.Send(SMTPWrapper.java:231)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:348)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.keywords.Common.CallSub4(Common.java:1082)
at anywheresoftware.b4a.keywords.Common.CallSubNew3(Common.java:1045)
at raid.quiz_master.aspopupmenu._itemclicked(aspopupmenu.java:1300)
at raid.quiz_master.aspopupmenu._clickitem(aspopupmenu.java:1229)
at raid.quiz_master.aspopupmenu._item_click(aspopupmenu.java:1777)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:732)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:351)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:255)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:144)
at anywheresoftware.b4a.BA.raiseEvent(BA.java:193)
at anywheresoftware.b4a.objects.ViewWrapper$1.onClick(ViewWrapper.java:80)
at android.view.View.performClick(View.java:5246)
at android.view.View$PerformClick.run(View.java:21256)
at android.os.Handler.handleCallback(Handler.java:739)
at android.os.Handler.dispatchMessage(Handler.java:95)
at android.os.Looper.loop(Looper.java:145)
at android.app.ActivityThread.main(ActivityThread.java:6939)
at java.lang.reflect.Method.invoke(Native Method)
at java.lang.reflect.Method.invoke(Method.java:372)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1404)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1199)