Added Smtp IO and a cmd Handler for controlling actions