- Quick Start Guide
- System requirements
- Installation guide
- Mobile networks
- User guide
- Standard user
- Autoreply SMS
- SMS from Excel
- SMS from Txt
- SMS from FTP
- Application starter
- SMS to E-mail
- Email client
- SMS to Email
- SMS through Gmail
- E-mail events
- SMTP server
- Direct clients
- Change the message
- Developers guide
- Service providers
E-mail to SMS and SMS to E-mail
This guide explains how you can setup Ozeki 10 SMS gateway to act as an e-mail client. This setup offers both e-mail to sms and sms to e-mail forwarding. For e-mail to SMS forwarding Ozeki will download e-mail messages from an e-mail server (using the POP3 protocol) periodically, and it will send these e-mails as SMS messages to mobile phones. For SMS to e-mail forwarding Ozeki will accept incoming SMS messages from the mobile network and will forward these to an e-mail address (using the SMTP protocol).
This solution consists of two sections. The first section is E-mail to SMS forwarding. If you look at Figure 1, you will see the route of the message of this section by following the green arrow. The second section is SMS to E-mail forwarding. The route of the messages for SMS to E-mail forwarding is shown in blue.
Figure 1 - System architecture of the SMS through Email function
How to setup E-mail to SMS forwarding
Let's start by setting up e-mail to SMS forwarding. The following configuration steps will show how the system should be configured to collect the incoming e-mails from an e-mail account using a POP3 client connection. You will also see how these emails are converted into SMS and how they are sent as SMS (Figure 2).
Figure 2 - Incoming email sent as SMS
Step 1 - Create a POP3 client connection
The first step of this guide is to create the POP3 client connection. For that, you need to open the SMS Gateway application, and here, select the Apps menu from the toolbar. In this menu, like in Figure 3, select the POP3 client from the E-mail clients section by clicking on the Install button.
Figure 3 - Select the POP3 client connection
Step 2 - Configure the POP3 server details
The first step of the configuration of the POP3 client connection is to provide the details of the POP3 server. This guide uses Gmail to demonstrate the process, so here, you need to enter the details of Gmail's POP3 server. As you can see it in Figure 4, type 'pop.gamil.com' as Host and type 995 as Port number. Then, select SSL/TLS as POP3 Security and lastly, provide the username and password of your e-mail account, which is in that case, a Gmail account.
Figure 4 - POP3 server details for the connection
Step 3 - Configure the advanced details of the connection
In the next step, you need to configure the way, that the connection is going to forward the messages. For that, first, click on the POP3 tab. Here, in the 'Message handling' section, you can set the maximum length of the message and select the way, how the e-mail will be forwarded. Next, as Figure 5 demonstrates, you can set the recipients for the e-mail. The addresses, that you type here will get the forwarded e-mails. If you finished with the configuration, you can just click on OK.
Figure 5 - Advanced configuration of the POP3 client connection
Step 4 - Configure the security settings of Gmail account
After you created the POP3 client connection, you need to do some modifications to the security settings of your Gmail account. For that, just type 'https://myaccount.google.com/lesssecureapps' in your browser and hit Enter. Here (Figure 6), you just need to turn the 'Less secure apps access' on. This will ensure that SMS Gateway is going to have access to download the e-mails.
Figure 6 - Turning on access for less secure apps
Step 5 - Modify the Gmail POP3 settings
In this step, you need to modify the forwarding setting of your Gmail account. For that, open Gmail and here, click on Settings. In the Settings menu, you need to select the Forwarding and POP/IMAP tab. Here, like Figure 7 shows that, select 'Enable POP for all mail' and finally, click on Save Changes.
Figure 7 - Modify forwarding settings of your Gmail account
Step 6 - Send a test e-mail
At this point, you can write an e-mail message to the Gmail account to test the solution. As you can see it in Figure 9, all you need to do is to write a simple 'Hello world!' to the e-mail address of the Gmail account that you set in the POP3 client connection.
Figure 8 - Write an e-mail message to the Gmail account
With everything is set up correctly, all you need to do now is to wait for the incoming e-mail to your Gmail account. In case of an incoming e-mail, the POP3 client connection is going to download the e-mail and forward it instantly to the specified recipient address. Figure 9 demonstrates the procedure of forwarding an incoming e-mail by using the POP3 client connection.
Figure 9 - See how SMS Gateway forwards the message as an SMS
Step 7 - Check the POP3 logs
You can easily check the logs of the POP3 client on your computer. These logs store every event that occurred with your POP3 client connection. Figure 10 shows the path, you need to follow in File Explorer to open the log file of the POP3 client connection. If you open that log file, you will be able to see all events of the POP3 client connection.
Figure 10 - File path for the log file of the POP3 client connection
The log file contains details of every event that occurred with your POP3 client connection. Here you can see a timestamp that shows the date of each event and the name of the connection. Lastly, each event has got a message that describes the event. Figure 11 shows the event messages of downloading an e-mail from the Gmail account and forward it to the given recipient address.
Figure 11 - Log file of the POP3 client connection
How to configure SMS to E-mail forwarding
After E-mail to SMS is working, you should configure the other direction: SMS to E-mail forwarding. In this section, you will see the steps that will allow you to configure the SMTP server details, and you will see how incoming SMS messages are forwarded to an e-mail address.
Figure 12 - Incoming SMS sent as email
Step 8 - Configure the SMTP server
To be able to forward SMS messages as an e-mail, you need to configure an SMTP server that can send the e-mail message. This configuration can be done with the POP3 client connection. If you have created this connection before, you can just open it in SMS Gateway, but if you haven't created the connection, check Step 1, how you can do that. As Figure 13 shows that you need to click on the SMTP tab to be able to configure the details of the SMTP server.
Figure 13 - Select SMTP menu in POP3 client connection
In the SMTP menu, you can configure the details of the SMTP server. Figure 14 shows what settings you need to do to use the Gmail SMTP server. So, type 'smtp.gmail.com' as Host and 587 as the port number. For SMTP security, select 'SSL/TLS' and also select the 'Normal password' option for Authentication. Lastly, just type the username and password of your Gmail account.
Figure 14 - Configure the SMTP server details
Step 9 - Configure the recipient e-mail address
The next configuration that you need to perform is to set up a recipient address which will receive the forwarded message. In the SMTP menu, type the recipient e-mail address to the 'To e-mail' field, as Figure 15 shows that. To the 'From e-mail' field, you can type the e-mail address of your Gmail account as well. This ensures that this address will show up as a sender address when the recipient gets the forwarded message. If you finished with all configuration, you can just click OK.
Figure 15 - Configure the recipient e-mail address
Step 10 - Send a test SMS
With the configured SMTP server, now your system is capable of receive SMS message and forward it as an e-mail message. Figure 16 demonstrates how the solution works. The SMS arrives at your system using a service provider connection. If you don't have that kind of connection you can check how to create an SMPP client connection. Then, the message routed to the POP3 client connection, which uses its SMTP server and the given details to forward the message to the recipient e-mail address.
Figure 16 - Workflow of SMS to e-mail forwarding
Figure 16 - SMS message received as e-mail
Step 11 - Check the logs
To check if your POP3 client connection works as expected, you can open its log file. Since you are using the same connection, the log file is located in the same folder that was described in Step 7. If you open the log file, you will be able to see every event of the connection. Figure 17 demonstrates that what events logged in case of a successful SMS to e-mail forwarding.
Figure 17 - Log events of SMS to e-mail forwarding