Ninox Emails

By David Gyenes, Director of IT

We get a lot of questions about sending auto emails from Ninox and I thought it would be a good topic to talk about. Andy has created a video about this topic on our YouTube channel as well, feel free to check it out (600.05 Email Integration & Automation).When we talk about automated emails I would like to clarify that emails have to be triggered by a button or action in Ninox. It is not fully automatic. Ninox doesn’t have the capability yet to have a time based trigger without the user interacting with Ninox. First lets take a look of the code block and it’s parameters:

							
					sendEmail({
		from: “ACME COMPANY <” + userEmail() + “>”,
		to: “email@email.com”,
		cc: “”,
		bcc: “”,
		replyTo: “”,
		subject: “”,
		text: “”,
		html: “”,
		attachments: “”
	});				
			

The “from”  is the senders email address. It has to be one of the email addresses that is associated with this team. The “to” / “cc” / “bcc” are the recipients, if we list more than one then it has to be a comma separated list. If we want to specify a different email address than the senders to reply to then we can do that in the “replyTo” parameter. There is nothing special about “subject”, it is just the subject line. The “text” and “html” are referring to the email body. These are the 2 different formats we can use. The “text” would send plain text format but in the “html” we can format the content. From Ninox we can generate PDF files and send them along with the email. Make sure you avoid some of the special characters that cannot be in the name of a file otherwise the attachment won’t send.

What to expect when sending emails from Ninox? Ninox offers Public and Private server options. Why is this important? Ninox Public server is configured with Ninox email engine and sending emails might end up in the recipients junk folder. If you are on a Private server you don’t have this issue.

There are multiple ways to send emails. You can create a button to send the email right away or you can build your own email engine. What do I mean? Let’s create a table that looks like an email platform and import all the parameters into this format so the user can see the email and edit it before it’s sent (see example below).