Automatic Sending of the Lost Registration Code - SMTP Sender Usage Example.
Example Description
This example shows how the SMTP Sender processor works.
To load the example, import the rules list rules.txt from the Examples\SMTP folder.
The example is solution of the task of automation of lost registration code sending. Upon receiving of a message with the words "lost" and "code" in its subject, a message with registration code is automatically sent to a registered user.
The text file users.txt in the Examples\SMTP folder is used as the database of users and their codes.
Example Rule Description
Filtering
There are filters used to find out if a message is lost code request.
Processing
●Parsing of the sender's e-mail address
●Search for code of sender with that address
●If such sender is found, a message with lost code is sent to him
Debug Messages
There are two debug messages. The first one is from registered user listed in the users database, the second one is from unregistered user.