<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent posts to Send an email using a function block</title><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/efe352df3d/" rel="alternate"/><link href="https://forge.codesys.com/forge/talk/CODESYS-V2/thread/efe352df3d/feed.atom" rel="self"/><id>https://forge.codesys.com/forge/talk/CODESYS-V2/thread/efe352df3d/</id><updated>2020-02-27T21:30:17.257000Z</updated><subtitle>Recent posts to Send an email using a function block</subtitle><entry><title>Send an email using a function block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/efe352df3d/?limit=25#0e87" rel="alternate"/><published>2020-02-27T21:30:17.257000Z</published><updated>2020-02-27T21:30:17.257000Z</updated><author><name>shooter</name><uri>https://forge.codesys.com/u/shooter/</uri></author><id>https://forge.codesys.comc127bb224eb2b2e1699ae8b7cf1c0dbaf0cbae45</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;see oscat.de for a nice library containing this type of communication, separate lib.&lt;br/&gt;
even in english.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Send an email using a function block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/efe352df3d/?limit=25#cd45" rel="alternate"/><published>2020-02-27T21:30:15.715000Z</published><updated>2020-02-27T21:30:15.715000Z</updated><author><name>ninanderson</name><uri>https://forge.codesys.com/u/ninanderson/</uri></author><id>https://forge.codesys.comd971b77ad63cfd08cf028e4ea0928c7aeac17c1a</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;I've used this method in CoDeSys V2.3.9 but it seems to have disappeared in V3.5.&lt;/p&gt;
&lt;p&gt;Does anyone know how to send alarm mails in V3.5.4 SP2 please ?&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Send an email using a function block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/efe352df3d/?limit=25#b00c" rel="alternate"/><published>2020-02-27T21:30:14.191000Z</published><updated>2020-02-27T21:30:14.191000Z</updated><author><name>slinky</name><uri>https://forge.codesys.com/u/slinky/</uri></author><id>https://forge.codesys.com7bfc121fbbc2bbcb5f75517ea98e7d5c208f124d</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;This is very helpful.&lt;/p&gt;
&lt;p&gt;I have a couple of questions though.&lt;br/&gt;
Firstly, how can I define variables to be displayed in the message?&lt;br/&gt;
i.e. what is the syntax for including variables in the message. I would like to send a collection of counter and timer values.&lt;/p&gt;
&lt;p&gt;Secondly. How do I handle sending an email if my account has a sending password?&lt;/p&gt;
&lt;p&gt;Thanks for your time.&lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Send an email using a function block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/efe352df3d/?limit=25#168b" rel="alternate"/><published>2020-02-27T21:30:10.096000Z</published><updated>2020-02-27T21:30:10.096000Z</updated><author><name>JAPIB</name><uri>https://forge.codesys.com/u/japib/</uri></author><id>https://forge.codesys.comd14f7e1a0692bea019bf246fc8ffa78a9af6b487</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;You can use Alarm Configuration (Ressources).&lt;br/&gt;
Example : send an email when a boolean variable changes state, using SP PLCWinNT.&lt;/p&gt;
&lt;p&gt;1 - Define variable :&lt;br/&gt;
VAR_GLOBAL&lt;br/&gt;
B1:BOOL;(&lt;em&gt;variable must send email&lt;/em&gt;)&lt;br/&gt;
END_VAR&lt;/p&gt;
&lt;p&gt;2 - Create a new Alarm Classes called, for example, myalarm.&lt;br/&gt;
3 - Choose action "Email"&lt;br/&gt;
4 - Configure Email (by double clicking on Email action) : &lt;br/&gt;
From : sender email or the PLC's name or what you want !&lt;br/&gt;
To : You email address (The recipient's address) &lt;br/&gt;
Subjetc : .... &lt;br/&gt;
Message : TIME/EXPRESSION:MESSAGE Actual value = VALUE, &lt;br/&gt;
Server : The address of the mail server&lt;/p&gt;
&lt;p&gt;5 - Select System and Append Subelement -&amp;gt; Alarm Group&lt;br/&gt;
6 - Add a new alarm&lt;br/&gt;
Expression : a variable you want it send email (B1 for example)&lt;br/&gt;
Type :  DIG=1&lt;br/&gt;
Class : myalarm&lt;br/&gt;
Message : B1 change state&lt;/p&gt;
&lt;p&gt;7- In the Target Setting, in visualization Tab, select "Alarmhandling in the PLC"&lt;br/&gt;
8 - Build and Load application into the PLC, and run it !&lt;/p&gt;
&lt;p&gt;Now when B1=0 or B1=1 your PLC mustsend you an email, with the following text : &lt;br/&gt;
h:mn:s/B1:B1 change state Actual value = 1.000000 (or 0.0000000)&lt;/p&gt;
&lt;p&gt;Best regards  &lt;/p&gt;&lt;/div&gt;</summary></entry><entry><title>Send an email using a function block</title><link href="https://forge.codesys.com/forge/talk/Codesys%2520V2.3/thread/efe352df3d/?limit=25#879f" rel="alternate"/><published>2020-02-27T21:30:08.622000Z</published><updated>2020-02-27T21:30:08.622000Z</updated><author><name>masav1234</name><uri>https://forge.codesys.com/u/masav1234/</uri></author><id>https://forge.codesys.com60cb354b5eb78e11f2f9013beed1350bdf2f7d72</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Hi,&lt;/p&gt;
&lt;p&gt;Do you know if it is possible to send automatically an email using Codesys?&lt;br/&gt;
I would like for example my system to warn me by mail when one of my pump is in fault.&lt;/p&gt;
&lt;p&gt;Thanks,&lt;/p&gt;
&lt;p&gt;masav&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>