Move config into instance variables

Need to be used throughout the class. Also add mail configuration for
sending via SMTP.