• ubergeek77@lemmy.ubergeek77.chat
    link
    fedilink
    English
    arrow-up
    3
    ·
    edit-2
    1 year ago

    If you self host both Lemmy and Ntfy, you can enable Ntfy’s SMTP receiver, and have Lemmy send emails to that port. It’s not well formatted for Ntfy but it works. Anything Lemmy would have sent an email for will be sent to Ntfy, and Lemmy thinks it’s sending an email.

    I just got this set up for myself and it works pretty well! You just need to use a specifically crafted email address with a token in order for it to work.

    However, this is only really viable for single-user instances. For myself, this is the perfect solution. But for others with more Lemmy users, unless you want to be manually managing tokens for all of your users, this is not a good solution.

    If you don’t self host Lemmy, I guess you could still self host Ntfy as an open email server and get them that way, but that sounds like it could get messy.

    • Deemo@lemmy.fmhy.mlOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      1 year ago

      I don’t really self host a lemmy instance so I ended up taking a different route (admitidly janky but reliable).

      I have a mac mini running 24/7, I enabled lemmy to send notification emails. On my mac I have the mail app set to automatic refresh and have a set of rules which search for lemmy instance as sender and subject contains reply. When mail detects it I have an apple script run a mac shortcut which checks my inbox latest inbox rss extracts the text and sends a ntfy push. Admitedly there are better ways to do this probably (than relying on shortcuts and apple script) but it works 🫠

      Result notification

      Also I have the link set to open wefwef on android (open in opens webapp) on ios I have it run deeplink to a shortcut which opens wefwef in webview

        • Deemo@lemmy.fmhy.mlOP
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          Thanks. Quick question are nifty topics publically discoverable (ie there is a place in the nifty server to view anyones topic)?

          I ended up choosing a long topic (I legit just mashed random letters in my keyboard) to make it undescoverable.

          Example (ihfepaoheiwpahfiauwh)

          Could some one easily discover that and snoop into the topic?

          • binwiederhier@discuss.ntfy.shM
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            There is no way to list topics. That would be silly, given that topics are meant to be used as secret notification channels 🙃

            The admin of the server can obviously list topics, but normal users cannot.

            • Deemo@lemmy.fmhy.mlOP
              link
              fedilink
              English
              arrow-up
              2
              ·
              1 year ago

              Good to know. Also thanks for making this push notifications are working reliable now 😉

              I also changed the default notification sound to harvonicas harp from apollo (reminds me of apollo’s push to a degree) 🥲

      • ubergeek77@lemmy.ubergeek77.chat
        link
        fedilink
        English
        arrow-up
        2
        ·
        1 year ago

        Oh it’s the dev, hey there! o/

        In case you were wondering how that reply looked through Ntfy:

        Funny enough, the Lemmy devs actually do use Ntfy for their CI/CD notifications (near the bottom of this config).

        But yeah, thanks for making Ntfy. I usually use Gotify for my self hosted notification needs, but I needed something with SMTP support so I could use it on Lemmy. Came across Ntfy by chance, and holy crap dude, it does everything!