What are all the parameters I can use when sending an email in Ninox?
I know you can set the subjct, the body (HTML)
Is there a way to set priority? Set CC/BCC, attach MULTIPLE FILES (if so how?), set the reply to a different email, change the name of the sender?
What are the codes for all of this? Thank you@
10 replies
-
Thank you, Mconneen.
Although the link refrenced above does not ansewer my question.
-
-Can I set a priority to an email? (Ex: Normal, Low, Medium, High)
-Am I able to CC or BCC someone to the attached email?
-Change the ReplyTo to a different email?
-Show a name that the email was sent from, instead of just the email address?
-
Hi,
The following tags can be provided in the function sendEmail():
to:
cc:
bcc:
replyTo:
subject:
text:
html:
attachments:Best, Jörg
-
Right.. It shows the attachment syntax... so it only answered a portion of your question .. :)
I just tried the following and it sends the name across.
sendEmail({
from: "Joe Fubar <joe@fubar.com>",
to: "toperson@gmail.com",
bcc: "bccperson@gmail.com",
subject: "Prefix : " + subjectField,
text: title + " " + text(t.Notes),
html: t.Notes
}) -
can we chose witch attachment we can send? If I what only to send 1 or 2 att. but I have more then that?
-
You can select the files by file name:
–––
file(this, "mypdf.pdf")
–––
Birger
-
I try this but it doesn't work
PDF = null;
let MyInfo := 'Info envoi';
let MyLayout := "Assurance";
let myName := "Preuve d'assurance.pdf" + "Lettre remerciement.pdf";
importFile(this, printAndSaveRecord(this, MyLayout), myName);
sendEmail({
from: 'Professeur coordonnateur'.Courriel,
to: Courriel,
subject: "Preuve d'assurance",
text: "Merci de prendre connaissance du document en pdf.",
html: "<p><i>James Déraps</i><p>Coordonnateur de stage en ATM<p>Cegep de Jonquière",
attachments: file(this, myName)
});
alert("Le email a été envoyé " + "
" + "a ce courriel: " + Courriel);
'Info envoi' := "Courriel d'assurance envoyé le " + now() + "
" + MyInfo;
'Preuve d''assurance' := "1" -
Birger give me the answer.
-
To send all my attachments that contain only .pdf with a logo included in my signature.
let MyInfo := 'Info envoi';
let myName := "All";
let allAttachments := unique(for i in files(this) do
if contains(text(i), ".pdf") and text(i) != text(PDF) then
i
end
end);
alert("Le email a été envoyé " + "
" + "a ce courriel: " + Courriel);
sendEmail({
from: 'Professeur coordonnateur'.Courriel,
to: Courriel,
subject: "Tous les documents de stage",
text: "Merci de prendre connaissance des documents en pdf.",
html: "<br><br>Merci de prendre connaissance des documents concernant le(la) stagiaire.<br><br><br><br><img src='https://share.ninoxdb.de/9cfxr24frkuaiheswfimuf1ciuhbg6a8lj' width='150px' /><br>James Déraps<br>Coordonnateur de stage en ATM<br>Cegep de Jonquière",
attachments: allAttachments
});
'Info envoi' := "Courriel d'assurance envoyé le " + now() + "
" + MyInfo;
All := "1"
Content aside
- 4 yrs agoLast active
- 10Replies
- 3453Views