support transfer of options from SMTP style to API style