This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
reference:lua_smtp_relay_control [2011/01/27 14:25] – paul | reference:lua_smtp_relay_control [2014/03/05 13:21] – [Initialisation] paul | ||
---|---|---|---|
Line 13: | Line 13: | ||
* UseBATV - this is a boolean value saying whether to [[http:// | * UseBATV - this is a boolean value saying whether to [[http:// | ||
+ | In VPOP3 6.7 and later, there are more read/write global variables and a read-only variable | ||
+ | * MaxMessagesPerConnection - The maximum number of messages to send in this connection | ||
+ | * MaxRecipientsPerConnection - The maximum number of recipients to specify in this connection | ||
+ | * MaxRecipientsPerMessage - The maximum number of recipients to send each message to | ||
+ | * ConnectedServer (read only) - The server name which VPOP3 has connected to (set just before the ServerConnected function call) | ||
=====Initialisation===== | =====Initialisation===== | ||
When VPOP3 starts the send process, it calls the function **Start** which takes no parameters, and has no return value. This can be used for initialisation, | When VPOP3 starts the send process, it calls the function **Start** which takes no parameters, and has no return value. This can be used for initialisation, | ||
+ | In VPOP3 v6.7 and later, after VPOP3 has connected to an SMTP relay server, it calls the function **ServerConnected** which takes no parameters and has no return value. The **ConnectedServer** global variable is set just before this function call. | ||
=====Return Code Handling===== | =====Return Code Handling===== | ||
Starting in version 5.0.0, VPOP3 will call the function **ReturnCodeHandler** every time it receives a return code from the ISP's server. | Starting in version 5.0.0, VPOP3 will call the function **ReturnCodeHandler** every time it receives a return code from the ISP's server. |