unified SMS function, see #7