How to send email from VTC of CONPROSYS?

More
1 week 2 days 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
1 week 2 days ago - 1 week 2 days 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: 1 week 2 days ago by Tom_Contec.

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

More
1 week 2 days 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.

Attachments:

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

More
1 week 2 days 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
1 week 2 days 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.431 seconds
Powered by Kunena Forum