|Technical support & download Application notes
AN22 - How to send an e-mail from the PortStore buffer device
The PortStore buffer device has the facility to send e-mail alert when power failure occurs or the buffer is getting full. These functions are useful when you use PortStore as CDR/SMDR buffer for PBX in remote location. To use this function, it is necessary to have installed a SMTP server on the network which takes care of e-mail delivery. This application note describes configuration of the PortStore with a freeware SMTP server for MS Windows - Free SMTP server.
To start up of e-mail functionality of the PortStore is not necessary to use mentioned Free SMTP server but is possible to apply different software. Its selection is based on operating system of the server and on additional requirements of organisation.
Free SMTP server settings
Description of programme
Free SMTP server is freeware for MS Windows which enables to send e-mails directly from your computer. It can be used instead of your ISP's one. It does not require authorisation and special settings so it is easy to send e-mails from the PortStore.
Installation of software is quite simple. First, we must download last version of Free SMTP server http://www.softstack.com/download/freesmtp.zip. We must unzip downloaded archive to a temporary folder and then we launch setup.exe. Wizard takes us trough the installation.
Free SMTP server is immediately usable after installation and there usually is not necessity to change any options. There are not many possibilities of configuration. All options are in menu File->Options. We can set two options in this dialog - port number (standard number of SMTP protocol is 25) and DNS server address. First option is necessary to change only in case that we already have another service on this port or due to security arguments. Second choice is suitable when we have special DNS server for an e-mail communication on our network.
Settings of PortStore
We must set the IP address of device, its mask, port number and gateway in PortStore's TCP Setup or RS-232 setup (see User's manual) at first. After this we can configure the e-mail. It can be done according to following example.
Tip: After setting up the parameters switch PortStore from Setup mode to Ethernet mode.
Power failure alert verify
To check sending power failure alert e-mail is sufficient to unplug power adaptor for a couple seconds and then plug back. After start of PortStore we should receive the e-mail (as shown on picture).
Full buffer alert verify
For verifying of this functionality we will use software utility HW Hercules Setup Utility that is delivered together with a buffer box or it can be downloaded from http://www.hw-group.com/download/sw/HerculesSetup.zip.
First, we must prepare testing data that we will send via RS-232 into PortStore. This we make in pane Serial
We right-click on state window (below text "Received/Sent data") and from context menu we choose Send file-> Test file generator and we save the file.
In next step we send generated data via serial link into the PortStore. Then we have to set communication parameters (set up speed, parity and other parameters of the serial port according to configuration of PortStore) and in field Mode we select PortStore test and then click on Open. Legend "COM opened" should appear in state window.
During sending of data we should received two e-mails from the PortStore. The messages look like following ones.
If e-mails come then everything is right and the PortStore works properly. (Tip: It is often that your anti-spam software blocks e-mails from the PortStore because it interprets them as SPAM. If this happens you have to change configuration of the anti-spam.)
I am looking forward your comments and technical questions.
Marek Matějka - Matejka @ hwg.cz
Links and download