Hello, My problem is the mail is send but no document
contenu = "Rapport Table Palette "
filepath = "C:\CSV\Export\\test.txt"
filename = "test.txt"
filedata = system.file.readFileAsBytes(filepath)
titre = "b"
A_qui = ["my.mail@compagnie.com"]
system.net.sendEmail(smtpProfile="MailTerreal",fromAddr="ivan.gnition@compagnie.com",to=A_qui,body=contenu,subject=titre,attachmentNames=filename,attachmentData=filedata)
Sorry for my bad english
Best Regard
Etienne DELAFOLIE