Unfortunately I am a bit out of my depth when it comes to understanding the communication with outgoing mail servers, maybe someone from the forum can help me.
Sending emails works fine from my private email account with the code I use.
When accessing the SMTP server of the company network, I get the following message, which I unfortunately cannot interpret: (port used is: 587)
Maybe the problem is that all emails have to be classified (External, Internal, Confidential) before being sent by the company's SMTP server?
Maybe someone can interpret the codes in the log correctly or tell me where to find an explanation? I can only explain the error by the missing classification of the email or maybe there are other security measures that block the sending of emails via direct access to the SMTP server.
The company uses Outlook365:
Should it be due to the missing classification, how can a mail to be sent via SMTP already be classified in the code?
Sending emails works fine from my private email account with the code I use.
When accessing the SMTP server of the company network, I get the following message, which I unfortunately cannot interpret: (port used is: 587)
B4X:
org.apache.commons.net.smtp.SMTPConnectionClosedException: Connection closed without indication.
at org.apache.commons.net.smtp.SMTP.__getReply(SMTP.java:199)
at org.apache.commons.net.smtp.SMTP.__sendCommand(SMTP.java:171)
at org.apache.commons.net.smtp.SMTP.__sendCommand(SMTP.java:186)
at org.apache.commons.net.smtp.SMTP.rcpt(SMTP.java:524)
at org.apache.commons.net.smtp.SMTPClient.addRecipient(SMTPClient.java:314)
at anywheresoftware.b4a.net.SMTPWrapper$1.run(SMTPWrapper.java:298)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
Maybe someone can interpret the codes in the log correctly or tell me where to find an explanation? I can only explain the error by the missing classification of the email or maybe there are other security measures that block the sending of emails via direct access to the SMTP server.
The company uses Outlook365:
B4X:
SMTP.Initialize("smtp.office365.com",587,Email.Text,Password.Text,"SMTP")