Hi How can i change the sender email for Wordpress WP-CLI Auto Update notifications? Thanks
need to update your /root/tools/wp_updater_${vhostname}.sh where ${vhostname} is your domain.com and modify -r DIFFERENTEMAILADDRESS to mail line like at Email - Postfix - Is it possible to automatically append sender name to all sent mails? | Centmin Mod Community it defaults to same TO $EMAIL variable from /root/tools/wp_updater_${vhostname}.sh Code (Text): mail -r $EMAIL -s "Wordpress WP-CLI Auto Update $(date)" $EMAIL
So i must change : Code: mail -r $EMAIL -s "Wordpress to: Code: mail -r newemail@domain.com -s "Wordpress ? or i can add a second variable like EMAIL2 and use it there $EMAIL2 ? But i don't want to mess your code
then what i said is correct edit only -r one Wordpress - How can i change the sender email for Wordpress WP-CLI Auto Update notifications | Centmin Mod Community
Damn confused and bad english all together now So which one is correct? Code: mail -r newemail@domain.com -s "Wordpress or Code: mail -r $email_from -s "Wordpress and adjust the email_from = root@localhost ? or Add a second variable like EMAIL2 and use it there $EMAIL2 ?
EMAIL=toemail EMAIL2=fromemail Code (Text): mail -r $EMAIL2 -s "Wordpress WP-CLI Auto Update $(date)" $EMAIL
It will be good to have it on Centminmod also as default with two variables A lot more easy I just did this: Code: EMAILTO=myemail@gmail.com EMAILFROM=serveremail@domain.com and Code: mail -r $EMAILFROM -s "Wordpress WP-CLI Auto Update $(date)" $EMAILTO