in reply to CGI::Application, call another runmode then return
Instead of the runmode doing the email task, have the runmode call a function that does the email task. Then call the same function from your original runmode as well.
Typically, I use a runmode to collect parameters from the client, and call a function with those parameters (after appropriate validation and conversion). This additional layer of abstraction allows also using the functions in a command line script, gui application, or other type of application.
--MidLifeXis
|
|---|