email not sending out, with possible fix

i was not having success sending emails (using simple sendmail setting) and after must frustration i dug into the code. i am not sure if this is because of who i use for mail relay (mailjet) or what, but it ended up being the way that the from: header in the email is formatted!

by changing the following lines in the code for api/mail.js, i can now send out emails:

      message: {
        //from: `📅 ${settings.title} <${settings.admin_email}>`
        from: `${settings.admin_email} (📅 ${settings.title})`
      },

i am not sure if it my local smtpd (postfix) or mailjet, but something was not liking the form: From: 📅 Site Name: Slogan <foo@example.com> but seems perfectly happy with the alternate form of From: foo@example.com (📅 Site Name: Slogan).

i think this might be because of this note i found about using the first format (name <email>) it seems one might need to quote the name when it contains whitespace? see e.g.: https://stackoverflow.com/a/3644085