some basic code for emails - doesn't yet work