Hello,
I got an email with my code
But still not attachment inside?
What do i wrong
Thank you
ClearCollect(
CSVCollection;
Concatenate(
"Title,Item,Price";
"\n";
Concat(
colCartData;
Concatenate(
"Title";
",";
"field_1";
",";
"field_9";
"\n"
)
)
)
);;
SMTP.SendEmailV3(
{
To:"demo@email.com";
Subject:"Test subject csv";
Body:"hi, you have a copy of the csv file";
attachments: Table(
{
FileName: "myCSVfile.CSV";
ContentData: Concat(CSVCollection; ",");
ContentId: "1";
ContentType: "application/octet-stream"
}
)
}
)