Starting to come together. Building main routine outgoingemail.pl