added new function get_smtp_details()