- This topic has 1 response, 1 participant and was last updated 1 year, 6 months ago da .
Viewing 2 posts - 1 to 2 (of 2 total)
Viewing 2 posts - 1 to 2 (of 2 total)
- You must be logged in to reply to this topic.
Home > Forum > Discussions on general problems > Sending eMail with log data from CSV file
It is possible with your systems SlimLine to save on your memory card some CSV files with some data and then at some point send an email attaching this file?
As for saving data in CSV files you can find many examples in the Knowledge and in the forum. I'll direct you to the FB StringToLogFile which was created to manage in a simple way the writing of data logs on files, right on the page you will find ready-to-use examples.
As for sending e-mails, our function block EMailSend allows the sending of emails and as you can see in the example ST_SendFileByEMail that you find on the page you can insert the content of your file in the text of the email.
On systems Cortex it is not possible to manage TLS encryption so you can only send e-mails to servers that accept unencrypted e-mails. Alternatively you can use a mail relay as indicated in the documentation. TLS encryption is currently only available on systems SlimLine Raspberry.
As an alternative to sending e-mails, many customers use the CSV file to be sent to an FTP server, such as a program FTPDataLogger that you find in the FB documentation FTPClient.