add foreach for sms and mms send