I’ve set up a rather lengthy application form for a website and can’t figure out a proper testing environment for it now that it has gone live.
I never managed to setup a test environment where I could send emails through the localhost and ended up uploading changes directly to the webserver. Since none of the involved scripts were in use, this was never a problem.
Now that the form is live, I’m in a bit of a bind - how do I make adjustments without potentially inflicting damage to users? I can’t test the way I did before - the application form is being used almost on a daily basis and I don’t want to impair running applications (it’s a lot to fill out, after all).
I figured, either I duplicate all the involved files, re-name them, move them somewhere else, test on the server and once I’m done copy all the code back to the original files… which already sounds like a nightmarish hassle just typing it out.
Or, I finally do manage to figure out a way to send emails to a private address from the localhost - which I have spent 2 hours on this morning and couldn’t get to work, because it looks like emails are more complicated than I thought.
I’m probably not the first one with this problem, but couldn’t find much on specifics online. What does your test environment look like for these cases? Do you have any recommendations? Are there alternative options? I’d appreciate any pointers!