Skip to content
ACC Automation: PLC & Industrial Control Learning

ACC Automation: PLC & Industrial Control Learning

Practical Tips and Techniques

  • Programming
    • PLC Beginner’s Guide to PLC Programming
    • PLC Basics – Programmable Logic Controller
    • PLC Programming +
    • HMI (Human Machine Interface)
    • Misc Tips
  • Series
    • Machine Simulator (EasyPLC) Software Suite
    • Node-RED IoT Enabling Software
    • C-More CM5 HMI Series
      • C-More CM5 FAQ
    • LS Electric XGB PLC Series
      • LS XGB Series XEM PLC FAQ
    • Click PLC Series Industrial Automation
      • Click PLC – FAQ
    • BRX (Do-More) PLC
      • Do-More PLC – FAQ
    • Productivity 1000 Series PLC – P1000
      • Productivity PLC – FAQ
    • Productivity 2000 Series PLC – P2000
      • Productivity PLC – FAQ
    • Arduino Opta PLC
      • Opta PLC FAQ
    • Omron PLC – CP1H Series (CP1 Omron PLC Family)
    • Horner XL4 Series
    • C-More HMI Series Panel
      • C-More EA9 – FAQ
    • C-More Micro HMI – Human Machine Interface
    • MOSAIC – MOdular SAfety Integrated Controller
    • CTT Multi-functional Digital Counter Timer and Tachometer
    • Productivity Open Arduino Compatible Industrial Controller
    • PLC Fiddle – Online PLC Editor and Simulator
    • Arduino Uno Starter Kit
  • Purchase / Find Parts
    • XY-MD02 Temp Humidity Sensor – Modbus RTU
    • Automation Tools and Tips (Preferred Devices)
    • Communication Products
    • Click PLC – Purchasing Components
    • Omron CP1H
    • Omron CP1E
    • Omron C20K C28K C40K C60K
  • Misc Tips
    • Video Library
    • Misc Tips
    • What’s New
    • Management/Leadership
    • About
  • Contact
    • Contact
    • About
    • Privacy Policy
  • Search Threads

PLC to Gmail: Bypass Network Blocks & Send Messages Fast

December 6, 2025September 19, 2015 by garrys

Sending email messages from the PLC sounds like an easy task. However, very few applications do this on the production floor. This is probably due to the networks involved, and authentication can be complicated. In our example, we will use a restricted Gmail SMTP server so that no authentication will be required. We will walk through sending email and text messages from the PLC to Google Gmail. Once in your Gmail account, the message can be automatically forwarded to another verified email or SMS text message address.
Here’s is a way to send email text messages PLC


Note:
Google is removing “Less Secured Apps” in the mail app. (Gmail). This will allow you to generate an “App Password” for your controller or program. If you are using this to send Emails from your controller, you must enable 2-step verification.
Gmail Less Secure App Access – App “passwords

SMP” – Google – PLC Send Email Text Messages

Simple Mail Transfer Protocol (SMTP) is an internet standard for email transmissions.

Google provides three different SMTP settings to send email messages from a printer, scanner, or application (PLC).

  1. The SMTP relay service sends mail from your organization by authenticating with the IP address(s). You can send messages to anyone inside or outside of your domain.
  2. Gmail SMTP server – requires authentication with your Gmail/Google Apps account and password. Messages can be sent to anyone inside or outside of your domain.
  3. Restricted Gmail SMTP server – does not require authentication, and you will only be restricted to sending messages to Gmail or Google Apps users.
Restricted Gmail SMTP Server – PLC Send Email Text Messages

We will use a restricted Gmail SMTP server to send emails and text messages. This is located at aspmx.l.google.com. This does not require authentication, so more PLCs can communicate with the server.

You must set up this free service if you do not have a Google Gmail account. Google Email Account

Now start the Do-more Designer software. This is available free of charge and is a fully functional package complete with a simulator. We will be using the simulator for our example. The actual Do-More PLC must have an Ethernet connection connected to the internet. (H2-DM1E)

System Configuration – PLC Send Email Text Messages

Start a new project with the simulator or an existing one with a connection to the internet.

Under ‘Project Browser’: ‘Tools,’ select ‘System Configuration.’
Here’s is a way to send email text messages PLC

In ‘CPU Configuration,’’ verify the IP address and netmask.’This will be automatically populated when using the Do-more Simulator.
Here’s is a way to send email text messages PLC

Hit the “Configure…” button if the IP address needs to be modified.
Here’s is a way to send email text messages PLC

In ‘System Configuration”n,’ select”‘Device Configuration.’
Here’s is a way to send email text messages PLC

Select “New Device” (If you do not already have an SMTP Client (Email) configured. If you”do, then s”lect it and hit “Edit Device”)
Here’s is a way to send email text messages PLC

Select ‘SMTP Client (Email)’ and hit ‘OK.’

Beside the ‘Device Name,” enter a na”e for the the’Email Client. Ex: @’yEmailCli’nt ‘beside the ‘S’TP Server I’P Address’ hit the ‘DNS Lookup….’
Here’s is a way to send email text messages PLC

Beside the URL: enter the server address aspmx.l.gAddress’m and’ hit ‘Lookup’’ This will retrieve one of the server’s IP addresses. Then press ‘Select’ to return this address to the configuration page.
Here’s is a way to send email text messages PLC

Ensure that the SMTP Server Port is set for 25. This is the default port setting. The Timeout setting can be left at 30 seconds. This is the time the PLC waits before setting any error message. Enter your ”‘From’ Email Address” – Enter your Google Gmail account address. Select ‘OK’ to ” ‘the configuration. Here’s is a way to send email text messages PLC“Ensure that authentication is disabled.

Now that we have set up our email client device ‘@MyEmailClient,’ we can move on to programming the Email messages.
Here’s is a way to send email text messages PLC

Ladder Logic Program – PLC Send Email Text Messages

We use the EMAIL instruction in the PLC to send the messages. We will send two messages; one will be an email and the other an SMS text message. The subject line will be different to distinguish the two.

Here is the PLC program for sending both messages.
Here’s is a way to send email text messages PLC

You will notice that a one-shot triggers the messages.
Here’s is a way to send email text messages PLC

Do-More Prog12 GMail Text
Notice in the message, we combine text with actual word and bit addresses that we want to send. The help function in the Do-more Designer software can provide further information.


Testing the Program – PLC Send Email Text Messages

Running the program and triggering the messages will send the Email to your google account.
Gmail 01 Email

You will notice if you open the message, a warning is given. ‘This message may not have been sent by’ appears because authentication is turned ‘ff. We can ignore this message.
Gmail 02 Email Message

We need now to set up Email forwarding to any account.

Under the gear sign in Google Gmail, select ‘Settings.’
Gmail 03 Email Settings

Select ‘Add a forwarding address.’
Gmail 04 Add a forwarding address

This will bring up a dialogue to forward Emails to a specific account. During this process, a verification code will be sent to this address. You must enter this code for validation or respond to the Email for the forwarding address to work.
Gmail 05 Add a forwarding address

Email to SMS Gateways can be used to forward your message in a text format. Here is a website showing a List of Emails to SMS Gateways.

Here are some that we use in Canada: Example: 613-451-0104 on Rogers network = 6134510104@sms.rogers.com

  • number@txt.bellmobility.ca
  • number@sms.wirefree.informe.ca
  • number@sms.fido.ca
  • number@msg.telus.com
  • number@sms.lynxmobility.com
  • number@text.mtsmobility.com
  • number@mobiletxt.ca
  • number@sms.rogers.com
  • number@sms.sasktel.com
  • number@vmobile.ca
  • number@txt.windmobile.ca
  • number@sms.wirefree.informe.ca

Once the forwarding address is verified, we can move on to the last step, creating a filter. The filters will automatically look at the incoming Email message and act on the news. In our case, we will be forwarding the message.

Under the settings menu, select ‘Filters’ and then ‘Create New Filter.’
Gmail 06 Settings Filters

The first page contains the items we seek ‘n the filter. Fill in the address of ‘the sender, our Gmail account, and the subject. The subject will be ‘ACC PLC _ GMail Text.’
Gmail 07 Settings Filters

Select ‘Continue >>.’

Our filter parameters appear at the ‘ top of the screen. Now we can determine what to do when a message arrives.
Gmail 08 Settings Filters

  • Mark as read
  • Please forward it to (Select forwarding address)
  • Never send it to Spam

You can create as many filters as you wish. Sending to multiple accounts requires only repeating the filter with the additional email addresses.

In the above example, we used a restricted Gmail SMTP server. No authentication was required to send an email with only an internet connection to the PLC.

Watch on YouTube: Here’s a quick way to send email text messages from the PLC
https://youtu.be/rfcpZHere’s
If you have any questions or need further information, please get in touch with me.
Thank you,
Garry



If you’re like most of my readers, you’re committed to learning about technology. Numyou systems used in PLCs are you’reallenging to learn and understand. We will walk through the numbering systems used in PLCs. This includes Bits, Decimals, Hexadecimal, ASCII, and Floating Points.

To get this free article, subscribe to my free email newsletter.


Use the information to inform other people how numbering systems work. Sign up now.

The ‘Robust Data Logging for Free’ eBook is also available as a free download. The lin’ is included when you suFree’be to ACC Automation.


Categories Articles, Communication, Do-More, Do-More Designer, PLC, PLC Learning Tags acc automation, do more plc email, E-mail (Software Genre), PLC, plc email, plc email login, plc ladder logic, plc programming, plc programming examples, plc programming examples and solutions, plc programming tutorial, plc sms, plc training, plc troubleshooting, Programmable Logic Controller, programmable logic controller tutorial, send sms from plc, SendEmail, Simple Mail Transfer Protocol (Protocol), smpt protocol, Text Messaging (Organization Sector)
Find Your Manufacturing Beat: Takt Time Secrets Revealed
These 3 Free PLC Tools Will Save You Hours of Coding

Donate


Help maintain this website.

Subscribe to ACC Automation:

Recent Posts

  • P1-M622-16DR Mini PLC: Is This Your Factory’s New Best Friend?
  • ACC 2025 500+ Free PLC Ladder Logic HMI Decade Knowledge Base
  • Industrial Ethernet Switch – 8 Gigabit Ports For EXTREME Temp?
  • Why Your PLC Dies Without the Right Power Supply!
  • What if DIGITAL TWINS Could Transform Your Factory?
  • Can I Use CLAUDE AI to Program a PLC Successfully?
  • What is PLC Logic in Scan Cycles REALLY Doing?
  • Most Asked PLC Ladder Logic Question and Why
pictory

YouTube Channel Subscribe:

Ezoic - Intelligent Technology for Website Publishers

Archives

Categories

  • P1-M622-16DR Mini PLC: Is This Your Factory’s New Best Friend?
  • ACC 2025 500+ Free PLC Ladder Logic HMI Decade Knowledge Base
  • Industrial Ethernet Switch – 8 Gigabit Ports For EXTREME Temp?
  • Why Your PLC Dies Without the Right Power Supply!
  • What if DIGITAL TWINS Could Transform Your Factory?
  • Can I Use CLAUDE AI to Program a PLC Successfully?
  • What is PLC Logic in Scan Cycles REALLY Doing?
  • Most Asked PLC Ladder Logic Question and Why
  • CLICK PLC Controls Rail Conveyor Palletizer in 5 Easy Steps?
  • Master the Clock: Using Timers in the Click PLC

Donate


Help maintain this website.

Newsletter

HostPapa Web Hosting

HostPapa Web Hosting

Ezoic Blog - How I Made A Fast WordPress Site With Ads Using Ezoic Leap
  • P1-M622-16DR Mini PLC: Is This Your Factory’s New Best Friend?
  • ACC 2025 500+ Free PLC Ladder Logic HMI Decade Knowledge Base
  • Industrial Ethernet Switch – 8 Gigabit Ports For EXTREME Temp?
  • Why Your PLC Dies Without the Right Power Supply!
  • What if DIGITAL TWINS Could Transform Your Factory?
© 2026 ACC Automation: PLC & Industrial Control Learning • Built with GeneratePress