Greetings - I'm writing a security application. It monitors certain hardware and maintains a log of the readings. Every midnight, it needs to email a copy of the previous 24 hour log to the department head. I am using XOJO 2017R1. It is a VERY large building that I cannot reveal at this point; I suspect that they have their own mail sever. I know that I need to find out the server name is, what port number it uses and what the security requirements are.
M y first question has to do with port number and privileges. It appears that ports 25, 110, or 587 are the ones most likely to be needed. Under SocketCore.LastErrorCode, the LR says: “you can only bind to ports less than 1024 if you have “root” privileges. A normal “Admin” user does not have root privileges.” But, under SocketCore.Port, it says: “On most operating systems, attempting to bind to a port less than 1024 causes a Error event to fire with an error number 107 unless the application is running with administrative permissions.” Which one is it, and how do insure that the application is running under the correct privileges (Mac for testing and Win for use target)?
The second question has to do with SMTPSecureSocket. This appears to be needed with Port 587. The first hurdle, here, is that I do not understand the statement: “If you use a constructor in a subclass of a SMTPSecureSocket, you must call the Super class's constructor in your subclass's constructor. The subclass will not work unless this is done.” The second hurdle is actually how to use it and how to deal with SSL Certificate? Is this something that has to be acquired? If so, where? Or, is there some sort of blanket certificate available for XOJO apps? Finally, where can I see an example using SMTPSecureSocket? That would really help!
Oregon Research Electronics