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


    Cloudron Forum

    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular

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

    Discuss
    2
    4
    184
    Loading More Posts
    • 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.moya
      andres.moya last edited by andres.moya

      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 Reply Quote 3
      • girish
        girish Staff last edited by girish

        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 Reply Quote 3
        • girish
          girish Staff last edited by

          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.moya 1 Reply Last reply Reply Quote 5
          • andres.moya
            andres.moya @girish last edited by

            @girish Thanks!

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Powered by NodeBB