This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm that you accept these cookies being set.

Send email with objects file from LM
#2
See this thread: https://forum.logicmachine.net/showthread.php?tid=394

Code:
if #buffer > 1 then
  data = table.concat(buffer, '\r\n')
  
  -- send file as report.csv with text/csv mime type
  res, err = mailattach('someone@example.com', 'Report for 2016', 'CSV file attached', 'report.csv', data, 'text/csv')
  log(res, err)
end
Reply


Messages In This Thread
RE: Send email with objects file from LM - by admin - 31.05.2018, 10:24

Forum Jump: