Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Discuss
  3. What is the easiest way to send emails to all users of a cloudron instance?

What is the easiest way to send emails to all users of a cloudron instance?

Scheduled Pinned Locked Moved Discuss
4 Posts 2 Posters 708 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • andres.moyaA Offline
      andres.moyaA Offline
      andres.moya
      wrote on last edited by andres.moya
      #1

      I need to be able to send (ocassionally) special announcements to all users of a cloudron instance. Not to the email that automatically is created in the instance domain, but the personal address they give when they register.

      Is there any easy way of doing this? Could I create a cloudron mailing list where all users are automatically added? Or could I install Mailtrain, for example, and syncronize the contacts in it with the instance user list?

      1 Reply Last reply
      3
      • girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by girish
        #2

        As a heads up, Cloudron does not automatically create emails for a user anymore (long removed many releases ago).

        To answer your original question, I guess the easiest way for the moment is get the email list via the API. I don't know if it help but in next release 7.1, there will be a way to export users/mailboxes in csv/json format.

        For the API: curl https://my.domain.com/api/v1/users?access_token=xxx will give the json of user listing.

        1 Reply Last reply
        3
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #3

          With poor man's shell scripting:

          curl -s https://my.domain.com/api/v1/users?access_token=xx | sed -ne 's/.*"email": "\(.*\)",/\1/p'
          
          andres.moyaA 1 Reply Last reply
          5
          • girishG girish

            With poor man's shell scripting:

            curl -s https://my.domain.com/api/v1/users?access_token=xx | sed -ne 's/.*"email": "\(.*\)",/\1/p'
            
            andres.moyaA Offline
            andres.moyaA Offline
            andres.moya
            wrote on last edited by
            #4

            @girish Thanks!

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Bookmarks
              • Search