This method runs on a Thread owned by this agent. While the agent is running, it periodically checks the message queue for new email messages to send to the SMTP server. If so, it opens a socket connection to the SMTP server and attempts to send each message in the queue, removing the messages from the queue if they were sent successfully.
SendEmailAgent Class | com.neokernel.email Namespace