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. LimeSurvey
  3. Email Settings

Email Settings

Scheduled Pinned Locked Moved LimeSurvey
7 Posts 3 Posters 46 Views 3 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.
  • D Offline
    D Offline
    darren
    wrote last edited by
    #1

    If I want to persist my own outgoing email server settings within the application, what's the best way to go about doing that? I can see that start.sh is overwriting email settings every time the app restarts.

    1 Reply Last reply
    2
    • jamesJ Offline
      jamesJ Offline
      james
      Staff
      wrote last edited by
      #2

      Do you mean => https://docs.cloudron.io/apps/#disable-email-configuration?

      But very good that you mention the start.sh.
      I just took a peek https://git.cloudron.io/packages/limesurvey-app/-/blob/master/start.sh?ref_type=heads#L35-L44

      echo "==> Configure email"
      $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('siteadminemail', '${CLOUDRON_MAIL_FROM}')"
      # support for single quote in splace name
      display_name=$(echo -n "${CLOUDRON_MAIL_FROM_DISPLAY_NAME:-LimeSurvey}" | base64)
      $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('siteadminname', FROM_BASE64('${display_name}'))"
      $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('siteadminbounce', '${CLOUDRON_MAIL_FROM}')"
      $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailmethod', 'smtp')"
      $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtpssl', '')"
      $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtphost', '${CLOUDRON_MAIL_SMTP_SERVER}:${CLOUDRON_MAIL_SMTP_PORT}')"
      $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtpuser', '${CLOUDRON_MAIL_SMTP_USERNAME}')"
      

      There is no check surrounding this based on https://docs.cloudron.io/apps/#disable-email-configuration.
      This means, the app needs to be updated to include such a check. Otherwise, even when disabling via. the UI this will still try to set it.
      Thanks for reporting!

      D 1 Reply Last reply
      2
      • jamesJ james

        Do you mean => https://docs.cloudron.io/apps/#disable-email-configuration?

        But very good that you mention the start.sh.
        I just took a peek https://git.cloudron.io/packages/limesurvey-app/-/blob/master/start.sh?ref_type=heads#L35-L44

        echo "==> Configure email"
        $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('siteadminemail', '${CLOUDRON_MAIL_FROM}')"
        # support for single quote in splace name
        display_name=$(echo -n "${CLOUDRON_MAIL_FROM_DISPLAY_NAME:-LimeSurvey}" | base64)
        $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('siteadminname', FROM_BASE64('${display_name}'))"
        $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('siteadminbounce', '${CLOUDRON_MAIL_FROM}')"
        $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailmethod', 'smtp')"
        $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtpssl', '')"
        $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtphost', '${CLOUDRON_MAIL_SMTP_SERVER}:${CLOUDRON_MAIL_SMTP_PORT}')"
        $mysql -e "REPLACE INTO lime_settings_global (stg_name, stg_value) VALUES ('emailsmtpuser', '${CLOUDRON_MAIL_SMTP_USERNAME}')"
        

        There is no check surrounding this based on https://docs.cloudron.io/apps/#disable-email-configuration.
        This means, the app needs to be updated to include such a check. Otherwise, even when disabling via. the UI this will still try to set it.
        Thanks for reporting!

        D Offline
        D Offline
        darren
        wrote last edited by
        #3

        @james yes I am also not sure this app has the option to disable email configuration even presented in the UI which would make sense since there's no check in the start.sh to respect a UI pref.

        7b810dc1-e48d-4d24-9008-73b97ff481a6-image.png

        1 Reply Last reply
        3
        • jamesJ Offline
          jamesJ Offline
          james
          Staff
          wrote last edited by
          #4

          @BrutalBirdie did the changes https://git.cloudron.io/packages/limesurvey-app/-/merge_requests/25
          Will be reviewed, and then the app update will be published.

          1 Reply Last reply
          1
          • nebulonN Offline
            nebulonN Offline
            nebulon
            Staff
            wrote last edited by
            #5

            Updated package with optional sendmail is out now.

            1 Reply Last reply
            1
            • D Offline
              D Offline
              darren
              wrote last edited by
              #6

              Thank you!

              1 Reply Last reply
              1
              • jamesJ Offline
                jamesJ Offline
                james
                Staff
                wrote last edited by
                #7

                @darren we can take the thanks as a "This now solved my issue", yes?
                If so, you can just upvote this message.

                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