Added Config class, updated SendEmail