Hello! I can`t attach files to sending message. an email is sent and received without error, but there are no attachments. I tried gmail and local server (hMailServer). What I do wrong? here is my code:[code]filepath=system.file.getTempFile(“txt”)
system.file.writeFile(filepath,“this is tested file”)
subject=“Test”
body=“this is to test mail send \n” + filepath + “\n”
html=0
attachmentName1=“ping.txt”
attachmentData1=system.file.readFileAsBytes(filepath) username1="test@192.168.1.51"
password1=“test”