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. WordPress (Developer)
  3. SMTP plugin changed to smtp-mailer

SMTP plugin changed to smtp-mailer

Scheduled Pinned Locked Moved WordPress (Developer)
17 Posts 3 Posters 1.9k 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.
    • d19dotcaD Offline
      d19dotcaD Offline
      d19dotca
      wrote on last edited by d19dotca
      #2

      I may be doing something wrong here, but I'm unable to get this to work with smtp-mailer. Here's what I'm doing (and other scenarios I've tried) after updating the package:

      Scenario #1:

      1. Uninstall WP Mail SMTP plugin
      2. Install SMTP Mailer plugin and activate it
      3. Restart the app using the Restart button on the Repair page of the app dashboard.
      4. Login again to WordPress and do not see SMTP Mailer setup for use at all (missing all the credentials and such)

      Scenario #2:

      1. Uninstall WP Mail SMTP plugin
      2. Install SMTP Mailer plugin and leave it deactivated
      3. Restart the app using the Restart button on the Repair page of the app dashboard.
      4. Login again to WordPress and do not see SMTP Mailer setup for use at all (missing all the credentials and such)

      Scenario #3:

      1. Uninstall WP Mail SMTP plugin
      2. Restart the app using the Restart button on the Repair page of the app dashboard.
      3. Login again to WordPress and do not see SMTP Mailer installed for use.

      I also have seen this in the WordPress logs of the app I'm testing this in...

      Feb 19 14:47:23 => Updating mailer settings
      Feb 19 14:47:24 Success: Value passed for 'wp_mail_smtp' option is unchanged.
      

      It's almost as if it still sees WP Mail SMTP instead still, based on the log entry there, even though it's not installed in the WordPress plugins list at all (it's not even there and deactivated, it just full out does not exist in my plugin list).

      Any ideas?

      Here's how I see SMTP Mailer after any of the scenarios above...
      608c3ef5-f961-4b75-a36c-6bd49aaace01-image.png

      --
      Dustin Dauncey
      www.d19.ca

      girishG 1 Reply Last reply
      2
      • d19dotcaD d19dotca

        I may be doing something wrong here, but I'm unable to get this to work with smtp-mailer. Here's what I'm doing (and other scenarios I've tried) after updating the package:

        Scenario #1:

        1. Uninstall WP Mail SMTP plugin
        2. Install SMTP Mailer plugin and activate it
        3. Restart the app using the Restart button on the Repair page of the app dashboard.
        4. Login again to WordPress and do not see SMTP Mailer setup for use at all (missing all the credentials and such)

        Scenario #2:

        1. Uninstall WP Mail SMTP plugin
        2. Install SMTP Mailer plugin and leave it deactivated
        3. Restart the app using the Restart button on the Repair page of the app dashboard.
        4. Login again to WordPress and do not see SMTP Mailer setup for use at all (missing all the credentials and such)

        Scenario #3:

        1. Uninstall WP Mail SMTP plugin
        2. Restart the app using the Restart button on the Repair page of the app dashboard.
        3. Login again to WordPress and do not see SMTP Mailer installed for use.

        I also have seen this in the WordPress logs of the app I'm testing this in...

        Feb 19 14:47:23 => Updating mailer settings
        Feb 19 14:47:24 Success: Value passed for 'wp_mail_smtp' option is unchanged.
        

        It's almost as if it still sees WP Mail SMTP instead still, based on the log entry there, even though it's not installed in the WordPress plugins list at all (it's not even there and deactivated, it just full out does not exist in my plugin list).

        Any ideas?

        Here's how I see SMTP Mailer after any of the scenarios above...
        608c3ef5-f961-4b75-a36c-6bd49aaace01-image.png

        girishG Offline
        girishG Offline
        girish
        Staff
        wrote on last edited by
        #3

        @d19dotca I think you are not on the latest package. Can you please check if you are on v2.9.0?

        The log will be something like:

        10:29:48 - => Configuring smtp-mailer plugin
        10:29:48 - Error: Could not get 'smtp_mailer_options' option. Does it exist?
        10:29:48 - Success: Updated 'smtp_mailer_options' option.
        
        d19dotcaD 1 Reply Last reply
        1
        • girishG Offline
          girishG Offline
          girish
          Staff
          wrote on last edited by
          #4

          @d19dotca said in SMTP plugin changed to smtp-mailer:

          Updating mailer settings

          This log line is present in package v2.8.2 but not in v2.9.0.

          d19dotcaD 1 Reply Last reply
          1
          • girishG girish

            @d19dotca I think you are not on the latest package. Can you please check if you are on v2.9.0?

            The log will be something like:

            10:29:48 - => Configuring smtp-mailer plugin
            10:29:48 - Error: Could not get 'smtp_mailer_options' option. Does it exist?
            10:29:48 - Success: Updated 'smtp_mailer_options' option.
            
            d19dotcaD Offline
            d19dotcaD Offline
            d19dotca
            wrote on last edited by
            #5

            @girish I'm certain I was on the right package, that was the whole point of my test was to update then make the changes to uninstall the WP Mail SMTP plugin in favour of the SMTP Mailer plugin, then reboot all while on the latest package available (2.9.0). I'll test again though shortly and take screenshots in case I see the issue again.

            --
            Dustin Dauncey
            www.d19.ca

            1 Reply Last reply
            0
            • girishG girish

              @d19dotca said in SMTP plugin changed to smtp-mailer:

              Updating mailer settings

              This log line is present in package v2.8.2 but not in v2.9.0.

              d19dotcaD Offline
              d19dotcaD Offline
              d19dotca
              wrote on last edited by d19dotca
              #6

              @girish Okay something is weird, lol. So I tried a couple scenarios today restoring to the v2.8.2 package and then updating to v2.9.0 and then touching the plugins, and secondary scenario was touching the plugins prior to updating to v2.9.0 of the package - both scenarios worked.

              At first I thought maybe the issue was that yesterday I had updated the package before I made any SMTP plugin changes, however it seems to be working fine whether before or after the package update today. And I'm certain I was on the correct package version yesterday because that was the only update available at the time (unless maybe it failed to update and I assumed it was successful?) - at least I'd be shocked if I somehow did all that testing without the updated package 😛 If I did then... shame on me. haha.

              Quick question though as I found what appears to be one stumbling block now that it's actually configured... It seems set to "WordPress" as the "from name" and I'd rather that not exist and just be the email address as the from name instead as that's how all my sites are configured and how my clients are used to receiving emails from their sites for product orders and such. However, it seems that the password is needed on every single Save to the settings, which means I can't really update the settings at all. How does one go about doing that in this case? I guess we can just fill it in from the credentials.txt file each time?

              --
              Dustin Dauncey
              www.d19.ca

              girishG 1 Reply Last reply
              0
              • d19dotcaD Offline
                d19dotcaD Offline
                d19dotca
                wrote on last edited by d19dotca
                #7

                Actually I just realized I can kind of prove that I was running the correct version... here's a screenshot from the Events page: (blocking hostnames)

                e1e21473-8491-496f-ad87-9568e76389a5-image.png

                Notice it was updated to v2.9.0.

                No idea why that wasn't working yesterday then after all that testing and suddenly working fine today.

                --
                Dustin Dauncey
                www.d19.ca

                1 Reply Last reply
                0
                • d19dotcaD Offline
                  d19dotcaD Offline
                  d19dotca
                  wrote on last edited by
                  #8

                  (embarrassed)... I think I know what happened. I used the correct version however ran into a minor issue so restored from backup and tried again... but that backup was the old version of course. Sigh, what a dummy move. 😆 Sorry about that.

                  --
                  Dustin Dauncey
                  www.d19.ca

                  1 Reply Last reply
                  2
                  • humptydumptyH Offline
                    humptydumptyH Offline
                    humptydumpty
                    wrote on last edited by
                    #9

                    I got SMTP Mailer to work but whenever I set the type of encryption to TLS, it reverts back to "No Encryption" after an app restart.

                    girishG 1 Reply Last reply
                    0
                    • humptydumptyH humptydumpty

                      I got SMTP Mailer to work but whenever I set the type of encryption to TLS, it reverts back to "No Encryption" after an app restart.

                      girishG Offline
                      girishG Offline
                      girish
                      Staff
                      wrote on last edited by
                      #10

                      @humptydumpty the encryption should not be TLS but be none. The connection is internal to the server and TLS is disabled for internal connections.

                      humptydumptyH 1 Reply Last reply
                      2
                      • d19dotcaD d19dotca

                        @girish Okay something is weird, lol. So I tried a couple scenarios today restoring to the v2.8.2 package and then updating to v2.9.0 and then touching the plugins, and secondary scenario was touching the plugins prior to updating to v2.9.0 of the package - both scenarios worked.

                        At first I thought maybe the issue was that yesterday I had updated the package before I made any SMTP plugin changes, however it seems to be working fine whether before or after the package update today. And I'm certain I was on the correct package version yesterday because that was the only update available at the time (unless maybe it failed to update and I assumed it was successful?) - at least I'd be shocked if I somehow did all that testing without the updated package 😛 If I did then... shame on me. haha.

                        Quick question though as I found what appears to be one stumbling block now that it's actually configured... It seems set to "WordPress" as the "from name" and I'd rather that not exist and just be the email address as the from name instead as that's how all my sites are configured and how my clients are used to receiving emails from their sites for product orders and such. However, it seems that the password is needed on every single Save to the settings, which means I can't really update the settings at all. How does one go about doing that in this case? I guess we can just fill it in from the credentials.txt file each time?

                        girishG Offline
                        girishG Offline
                        girish
                        Staff
                        wrote on last edited by
                        #11

                        @d19dotca said in SMTP plugin changed to smtp-mailer:

                        Quick question though as I found what appears to be one stumbling block now that it's actually configured... It seems set to "WordPress" as the "from name" and I'd rather that not exist and just be the email address as the from name instead as that's how all my sites are configured and how my clients are used to receiving emails from their sites for product orders and such. However, it seems that the password is needed on every single Save to the settings, which means I can't really update the settings at all. How does one go about doing that in this case? I guess we can just fill it in from the credentials.txt file each time?

                        There is code to make sure that the from name is persisted across restarts. So, if you change it to something from the default 'WordPress', it will not get overwritten. But as you pointed out, you need to also fill up the password field (which is in credentials.txt) listed under Sendmail Credentials to update it. I will try to report this in the smtp-mailer plugin.

                        girishG humptydumptyH 2 Replies Last reply
                        1
                        • girishG girish

                          @humptydumpty the encryption should not be TLS but be none. The connection is internal to the server and TLS is disabled for internal connections.

                          humptydumptyH Offline
                          humptydumptyH Offline
                          humptydumpty
                          wrote on last edited by
                          #12

                          @girish Thanks Girish. It's just a bit confusing for noobs like me when there's a "recommended" tag for TLS. No harm done as it won't keep that setting anyway.

                          1 Reply Last reply
                          0
                          • girishG girish

                            @d19dotca said in SMTP plugin changed to smtp-mailer:

                            Quick question though as I found what appears to be one stumbling block now that it's actually configured... It seems set to "WordPress" as the "from name" and I'd rather that not exist and just be the email address as the from name instead as that's how all my sites are configured and how my clients are used to receiving emails from their sites for product orders and such. However, it seems that the password is needed on every single Save to the settings, which means I can't really update the settings at all. How does one go about doing that in this case? I guess we can just fill it in from the credentials.txt file each time?

                            There is code to make sure that the from name is persisted across restarts. So, if you change it to something from the default 'WordPress', it will not get overwritten. But as you pointed out, you need to also fill up the password field (which is in credentials.txt) listed under Sendmail Credentials to update it. I will try to report this in the smtp-mailer plugin.

                            girishG Offline
                            girishG Offline
                            girish
                            Staff
                            wrote on last edited by
                            #13

                            I asked the plugin author here - https://wordpress.org/support/topic/ability-to-change-from-name-without-providing-password-each-time/#new-topic-0

                            1 Reply Last reply
                            1
                            • girishG girish

                              @d19dotca said in SMTP plugin changed to smtp-mailer:

                              Quick question though as I found what appears to be one stumbling block now that it's actually configured... It seems set to "WordPress" as the "from name" and I'd rather that not exist and just be the email address as the from name instead as that's how all my sites are configured and how my clients are used to receiving emails from their sites for product orders and such. However, it seems that the password is needed on every single Save to the settings, which means I can't really update the settings at all. How does one go about doing that in this case? I guess we can just fill it in from the credentials.txt file each time?

                              There is code to make sure that the from name is persisted across restarts. So, if you change it to something from the default 'WordPress', it will not get overwritten. But as you pointed out, you need to also fill up the password field (which is in credentials.txt) listed under Sendmail Credentials to update it. I will try to report this in the smtp-mailer plugin.

                              humptydumptyH Offline
                              humptydumptyH Offline
                              humptydumpty
                              wrote on last edited by
                              #14

                              @girish Regarding the FROM name issue. I set my own site name there instead of Wordpress and hit save. Then, a misconfiguration error appears but an app restart will fix that and the modified FROM name is still in there. I tested it for both sites and it's working fine for me using this method.

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

                                Turns out base64 CLI tool output is multi-line by default 🤕 . This caused some updates to fail. An update has been pushed, in case your WP failed, just Updates -> Check For Updates and apply the update.

                                The fix was to use base64 -w 0 (width 0 means all output is in a single line. the default width is 76)

                                1 Reply Last reply
                                2
                                • d19dotcaD Offline
                                  d19dotcaD Offline
                                  d19dotca
                                  wrote on last edited by
                                  #16

                                  I'm impressed at the speed of development on that SMTP-Mailer plugin. They already released an update to resolve the request filed on being able to update some settings without needing the password each time.

                                  996516a0-2771-43e0-9f08-8976b6f99b0c-image.png

                                  Thanks for handling that, @girish! 🙂

                                  --
                                  Dustin Dauncey
                                  www.d19.ca

                                  girishG 1 Reply Last reply
                                  3
                                  • d19dotcaD d19dotca

                                    I'm impressed at the speed of development on that SMTP-Mailer plugin. They already released an update to resolve the request filed on being able to update some settings without needing the password each time.

                                    996516a0-2771-43e0-9f08-8976b6f99b0c-image.png

                                    Thanks for handling that, @girish! 🙂

                                    girishG Offline
                                    girishG Offline
                                    girish
                                    Staff
                                    wrote on last edited by
                                    #17

                                    @d19dotca I can confirm his fix works as well!

                                    1 Reply Last reply
                                    2
                                    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