How to send email from VTC of CONPROSYS?

More
7 months 2 weeks ago #72 by Tom_Contec
I would like to send an email from VTC. Do you have a simple example?

Please Log in or Create an account to join the conversation.

More
7 months 2 weeks ago - 7 months 2 weeks ago #73 by Tom_Contec
Here is a simple VTC for sending email.



TAG00 is linked with a HMI switch and email is sent when switch value is changed from 0 to 1. According to Determine component (X0:Y2), email is not sent when TAG00 is 0.

TAG01 is used to prevent sending email continuously. Email is sent only TAG00 is 1 and TAG01 is 0 (X0:Y2 and X0:Y3). After sending email, value of TAG01 is changed to 1 (X0:Y5). If switch state (TAG00) is 0 (X0:Y2), TAG01 needs to reset to 0 (X1:Y2).

In Send Mail component (X0:Y4), STAG00 is specified as Subject property and string for STAG00 is made by Calc String component (X0:Y1). STAG01 is used for email Body property and this is linked with a HMI textbox.
Attachments:
Last edit: 7 months 2 weeks ago by Tom_Contec.

Please Log in or Create an account to join the conversation.

More
7 months 2 weeks ago - 3 months 1 week ago #74 by Tom_Contec
You need to specify the target address from Send Mail component property. You can select from ADDR00 to ADDR09 from list box as target address, CC or BCC.



ADDRxx is determined by CONPROSYS WEB menu ([Setting] - [Mail]). Mail Address 1 in web menu is correspond to ADDR00 in VTC.



You also need to specify SMTP server. Below screenshot is an example for mailtrap.



SMTP Server : smtp.mailtrap.io
port Number : 25
User : Specift username for mailtrap
Password : Specify password for mailtrap
FROM : Specify sender email address
Use SMTP-AUTH : Must be enabled for mailtrap
Select SSL/TLS : Enable or Disable
Secure Type : Must be None or TLS for mailtrap
Attachments:
Last edit: 3 months 1 week ago by Tom_Contec.

Please Log in or Create an account to join the conversation.

More
7 months 2 weeks ago #75 by Tom_Contec
For sending email demo, prepare HMI like below. Value property of Switch is linked with TAG00 and Text property of Text Input is linked with STAG01.





Attachments:

Please Log in or Create an account to join the conversation.

More
7 months 2 weeks ago #76 by Tom_Contec
When you change HMI switch from 0 to 1, email is sent to specified address. Attached screen is a result of MailTrap.

Attachments:

Please Log in or Create an account to join the conversation.

Time to create page: 0.353 seconds
Powered by Kunena Forum