Solved WP-CLI tries to use sendmail
-
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.
-
@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...
-
That is default behavior of new WP install. A welcome message to the adm user.
-
ok, wonder if there is way to not do it? Because on many new instances, there will not be a pre-configured SMTP.
-
@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.
-
@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...
-
thanks. missed that