split email_library into smtp_library and sendmail_library