Opening, Reminding and Closing
The buttons at the top of a survey's page move it between Draft, Open and Closed and send the invitations.
Open and send (or Reopen) asks for confirmation:

The confirmation before a survey is opened.
and then:
- Refuses if the survey has no questions ("Add at least one question before opening the survey").
- Sets the status to Open.
- Creates an invitation for every active employee in the audience who doesn't have one yet.
- For each new invitation, sends a Horilla notification ("You are invited to the survey ...") that opens the personal link, and an e-mail with the link. The e-mail needs a configured mail server; without one the message "No mail server is set up - employees were notified in Horilla only" is shown. An employee without a user account gets no notification, and one without an e-mail address gets no mail.
The e-mail's subject is the survey's title, and it comes from the mail server's configured sender name. The body greets the employee ("Hello, Emily Clark!"), says "You are invited to a short survey" with the title and description, and has a red Take the survey button holding the personal link. Below it, small print says whether the survey is anonymous, that answers are saved as you go, and when it is open until. Remind sends the same e-mail with "Reminder:" in front of the subject and "The survey is still waiting for your answers" in the body. Employees answer from that button.
An invitation is marked as sent even when neither the notification nor the e-mail could actually be delivered.

The Remind confirmation.
Remind asks "Remind everyone who has not answered?" with Confirm and Cancel and, only while the survey is accepting answers, sends a reminder notification and e-mail to everyone who hasn't submitted yet, and stamps their Reminded time.

The Close confirmation.
Close asks "Close the survey? No more answers will be taken." with Confirm and Cancel, and sets the status to Closed; the personal links then say "This survey is not open right now".
Reopen on a closed survey opens it again and creates invitations for people who joined the audience since. It does not remind those already invited; use Remind for that.
Opens at and Closes at are checked when somebody uses the link:
- Before Opens at, or after Closes at, the link shows "This survey is not open right now", even though the status still reads Open.
- Nothing changes the status by itself. A survey whose closing time has passed stays Open in the list until a manager clicks Close, and Remind is then refused ("The survey is not open").
- Invitations are sent when you click Open and send, even if Opens at is in the future.
