only print email if script was called, not imported