Hello
So this code work's fine for me, BUT i want to be able to send the email with or without pictures
i get error if there is no photo's added. please help.. this is my code, the PDF container works fine.
i can put the pictures in a attachments but that dident help me, pretty new at this..
Office365Outlook.SendEmailV2(
Dropdown2_5.SelectedText.Value,
Subject_2.Text,
"Se bifogad fil.",
{
Cc: "TEST@Email.com",
Attachments: Table(
{
Name: "Inventering.pdf",
ContentBytes: PDF(
Container1_1,
{
Orientation: PaperOrientation.Landscape,
Size: PaperSize.A4,
Margin: "24pt 24pt 24pt 24pt"
}
)
},
{ Name: "Bild1.png",
// Name of the first image attachment
ContentBytes: Image9.Image// Content of the first image attachment
},
{
Name: "Bild2.png",
// Name of the second image attachment
ContentBytes: Image9_1.Image// Content of the second image attachment
}
)
}
);