two thoughts come to mind:
• you could have 2 projects and use one for dev & testing, and one for production. That's a very common approach
• you can do the SMTP config modification via the configuration [file], and just have 2 different configs that you push via Ory CLI