Text
|
A SMTP (Mail) object is created with the property "from" set as the login userid of the User. SMTP (Mail) object can only be created by a logged in user.
An object of type mail represents a single mail message received or to be sent. The mail object can be instantiated. It can also be created automatically on receipt of a mail. This object type is identical to VAR and can be used as such in all other ways.
Notes 1. To send mail, a default SMTP Gateway has to specified in the Caravan.cnf file in the etc path: smtpgateway mail.domain.com
2. TCP/IP port 25 is used by Caravan for mail transactions. A listener is installed on this port automatically on startup. Caravan will accept incoming connections only if "mailaction" and "mailuser" scripts have been implemented.
3. Any output from (mailuser,mailaction,maildeliverystatus) scripts are sent to the console unless redirected by explicit "output" statement.
4. Currently all scripts are placed in the templates directory with .html extension.
Also refer to SMTP Server topic for more details on mails sent and received.
|