Neokernel API

SendEmailAgent Class

This agent queues up email messages and sends them to the smtp_host at regular intervals. There are a variety of properties that can be configured which define how and when these messages are sent. This agent implements the SendEmailInterface and registers with the Service Manager for other agents to use.

The SendEmailAgent supports the following properties:

service_name
The name this agent uses to register with Service Manager. The default value is send_email
max_queue_size
Max size of the message queue. Default value is 100
smtp_sleep_ms
Number of milliseconds to wait before checking the queue for new messages to send. Default value is 5000
smtp_host
Hostname or IP address of the SMTP server. Default value is localhost
smtp_port
Port to use for SMTP communications. Default value is 25
smtp_timeout_ms
SMTP timeout in milliseconds. Default value is 30000
auth_username
Username to use for SMTP communications (optional). Default value is none
auth_password
Password to use for SMTP communications (optional). Default value is none

For a list of all members of this type, see SendEmailAgent Members .

System.Object
   Props
      Agent
         ServiceAgent
            SendEmailAgent

public class SendEmailAgent : ServiceAgent, SendEmailInterface, IThreadRunnable

Thread Safety

Public static (Shared in Visual Basic) members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

Requirements

Namespace: com.neokernel.email

Assembly: Neokernel (in Neokernel.exe)

See Also

SendEmailAgent Members | com.neokernel.email Namespace