Do all the things like ++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatarSign Up
stop58993ylooks like a Project with a lot dead Code.
cursee181693yI thought I read a murder mystery novel 🤔
@ClemFrieckie yes, but that doesn't tell me how it's called.
Ex: the controller calls a function via an `after_save` trigger, which calls method on a model, which calls another method on a different model, which may have another trigger, and that calls something that sends an email.
If I find the code that sends an email, working backwards is still quite difficult.
hjk10123813y@Root we used to have the same problem with scheduled tasks. Running on different servers. Sometimes in the applications own scheduler sometimes in etc/cron* files and sometimes in the users crontab. Now we have everything nicely organized in rundeck.
You could try and trace it backwards. Create a dummy signup and see if you get something. Check the servers maillog. If it's not there check the received mail headers to figure out what service is used. Search the code for the appropriate API calls. If you find only a generalized mail method you can see either where it's called of use a debugger and it's call stack feature.
Perhaps you could run your services in an sandbox with all connections, only no connection to the mailserver and look for an exception thrown if it couldn't connect to the mailserver.
There you can get to line and stacktrace of the call
@hjk101 @realLifeMock Both are great ideas! However, I decided to simply ask the accountants if they send an email manually, and if not, to sign up and promote a customer with valid email, and forward me any confirmation email they receive.
Doesn't show me where or how it happens, but does tell me *if* it happens. I can then work backwards from the email template.
Total time investment: 30 seconds ^^
@hjk101 I absolutely will at some point. However, all I will need to do in the near future is modify whatever email we send -- or write one if we do not.
I have more than enough other tasks to keep me busy.
(... including trying to figure out how the company is still alive, and if it's even solvent. :/)