0
Email a Report from a form with PDF
I am struggling to send emails from a button.
the current code is:
let check := dialog("Email Guest?", "Guest Will Receive a Confirmation Email.", ["Email Confirmation", "Close"]);
if check = "Email Confirmation" then
let myPdf := printAndSaveRecord(this, "Maintenance Log");
let myName := "Maintenace Report.pdf";
importFile(this, myPdf, myName);
let myEmail := userEmail(user());
sendEmail({
from: "email linked to user",
to: whomever i want,
subject: "Maintenance Report",
text: "Maintenance Report",
html: null,
attachments: file(this, myName)
});
alert("Confirmation Sent")
end
1 reply
-
Maybe this template can help you :
Content aside
- 1 yr agoLast active
- 1Replies
- 75Views
-
2
Following