5. Sending Email when an Event Occurs

5. Sending Email when an Event Occurs

Postby Jasmine » Wed Jan 07, 2015 10:31 am

This video below contains a brief explanation and a simple application for those who are new to Sollae Systems’ PHPoC programmable devices.

In this fourth tutorial, we will set a specific range of temperature data from a serial port.
Then, when temperature is not in the range, an E-mail will be sent with temperature data.

One thing to remember is that PBH-101 must be connected to the Internet to access a mail server.

Process Diagram

Image

When temperature data is over 21 degree, an E-mail will be sent through the Google mail server.
To get the account authorization from the mail server, we will use "Extended SMTP" protocol.

Sample Source & Library
You need sample source and library to try application in the video.
Go to PHPoC Forum to download it.

- sn_esmtp.php (Library)
- sn_dns.php (Library)
- email_msa.php (Sample Source)
- Previous Result Source: debugging_output (11.81KB)

Tutorial Video
※ Watch this video with 720p(HD) for best screen quality.

phpBB [video]


Result Source
Firmware v1.0.0: esmtp_output (15.74 KB)
New Firmware v1.1.0:
esmtp_output_1.1.0.zip
(17.97 KiB) Downloaded 242 times


PHPoC Tutorial
1. PHPoC Development Preparation
2. Transformation of Serial Data
3. User's Environment Variable Setup through the Web
4. Data Analysing through Debugging
5. Sending Email when an Event Occurs
6. Saving Data in DB(MySQL)
Jasmine
 
Posts: 6
Joined: Fri Jan 02, 2015 2:08 pm

Re: 5. Sending Email when an Event Occurs

Postby ThurmanS » Thu Jul 27, 2017 7:02 pm

Brilliant tutorial, thanks Jasmine. I got my email all setup now.
ThurmanS
 
Posts: 1
Joined: Fri Jul 21, 2017 8:46 am


Return to Tutorial Video

Who is online

Users browsing this forum: No registered users and 1 guest

cron