Open email client with pre-populated email, subject and attachment
I'm trying to combine the Email function and openURL
I use the following for invoices, which is 100% fine
let myEmail := userEmail();
let myPdf := printAndSaveRecord(this, "Quotes");
let myName := "Cardia Bioproducts Quote" + ".pdf";
importFile(this, myPdf, myName);
to: Customer.'Account Email',
subject: "Cardia Bioproducts Invoice",
text: "Please find attached the invoice for your order 'Purchase Order #' on Date",
attachments: file(this, myName)
But I want to achieve the above with the same effects that the below achieves. Not sure how to add the attachment though.
openURL("mailto:" + Contact.Email + "?" + "&subject=" + 'Quote Number')
The main reason for that would be because the Ninox mail server spoofs as which ever email address you put in the From: field. I would think that a lot of spam would use this technique to make you think that it is from a different/legitimate source. So yes, it could be hit a miss. I personally haven't had any issues with this so far, but people’s Gmail accounts do warn you that the email could be spoofed.