Update allow emailconfig

added ability to use EmailConfig settings from the email.php file.