Untitled

 avatar
unknown
plain_text
2 years ago
1.4 kB
3
Indexable
/// VERSION 1

let emailToSend = EmailMessageData.constructFromObject({
                        Recipients: [
                            new EmailRecipient(email)
                        ],
                        Content: {
                            TemplateName: "Template01",
                            Body: [
                                BodyPart.constructFromObject({
                                    ContentType: "HTML",
                                    price: "123456789",
                                })
                            ],
                            Subject: "Price offer",
                            From: "xxx@xxx.xxx"
                        }
                    });

/// VERSION 2

let emailToSend = EmailMessageData.constructFromObject({
                        Recipients: [
                            new EmailRecipient(email)
                        ],
                        Content: {
                            TemplateName: "Template01",
                            Body: [
                                BodyPart.constructFromObject({
                                    ContentType: "HTML",
                                })
                            ],
                            Subject: "Price offer",
                            From: "xxx@xxx.xxx"
                            price: "123456789",
                        }
                    });