ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Solved WP-CLI tries to use sendmail

    IT Discussion
    wordpress wp-cli sendmail
    2
    6
    790
    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.
    • JaredBuschJ
      JaredBusch
      last edited by JaredBusch

      Setting up a new WP instance with WP-CLI, it attempts to send an email at the end with sendmail.

      This seems like a huge assumption. What is it trying to send? Is there an option to do something different?

       sudo -u apache wp core install --url=$WP_URL --title=--title="${WP_TITLE}" --admin_user=$WP_ADMIN --admin_password=$WP_ADMIN_PASS --admin_email=$WP_ADMIN_EMAIL
      sh: /usr/sbin/sendmail: No such file or directory
      Success: WordPress installed successfully.
      
      1 Reply Last reply Reply Quote 0
      • ObsolesceO
        Obsolesce @Obsolesce
        last edited by

        @Obsolesce said in WP-CLI tries to use sendmail:

        @JaredBusch said in WP-CLI tries to use sendmail:

        ok, wonder if there is way to not do it? Because on many new instances, there will not be a pre-configured SMTP.

        I think there's a switch, but it's been awhile since I used wpcli so may have been something else.

        @JaredBusch yup...
        Screenshot_20200329-010952_Edge.jpg

        1 Reply Last reply Reply Quote 0
        • ObsolesceO
          Obsolesce
          last edited by

          That is default behavior of new WP install. A welcome message to the adm user.

          1 Reply Last reply Reply Quote 0
          • JaredBuschJ
            JaredBusch
            last edited by

            ok, wonder if there is way to not do it? Because on many new instances, there will not be a pre-configured SMTP.

            ObsolesceO 1 Reply Last reply Reply Quote 0
            • ObsolesceO
              Obsolesce @JaredBusch
              last edited by

              @JaredBusch said in WP-CLI tries to use sendmail:

              ok, wonder if there is way to not do it? Because on many new instances, there will not be a pre-configured SMTP.

              I think there's a switch, but it's been awhile since I used wpcli so may have been something else.

              ObsolesceO 1 Reply Last reply Reply Quote 0
              • ObsolesceO
                Obsolesce @Obsolesce
                last edited by

                @Obsolesce said in WP-CLI tries to use sendmail:

                @JaredBusch said in WP-CLI tries to use sendmail:

                ok, wonder if there is way to not do it? Because on many new instances, there will not be a pre-configured SMTP.

                I think there's a switch, but it's been awhile since I used wpcli so may have been something else.

                @JaredBusch yup...
                Screenshot_20200329-010952_Edge.jpg

                1 Reply Last reply Reply Quote 0
                • JaredBuschJ
                  JaredBusch
                  last edited by

                  thanks. missed that

                  1 Reply Last reply Reply Quote 0
                  • 1 / 1
                  • First post
                    Last post