Posted 29 November 2012 - 04:56 PM
Whenever I write onto a file it deletes what is before.
mailbody = fs.open(to, "w")
mail = fs.open(to, "w")
mail.writeLine("FromId: " .. id)
mail.writeLine("FromName: " .. name)
mail.writeLine("To: " .. to)
mail.write(message..table.concat(mailbody,',\n'))
mail.close()