|
发表于 2011-4-7 20:14:53
|
显示全部楼层
53平台不知道,35的最近看,后台发送仅需提供目的号码及发送内容即可。
例子:
void mmi_rej_by_sms_sendreq(S8* number, U16* content)
{
SMS_HANDLE send_handle;
send_handle = srv_sms_get_send_handle();
if (send_handle == NULL)
{
return;
}
if ((U16)srv_sms_is_bg_send_action_busy() == MMI_TRUE)
{
return;
}
srv_sms_set_address(send_handle, number);
srv_sms_set_content_dcs(send_handle, SRV_SMS_DCS_UCS2);
srv_sms_set_content(send_handle, (S8*)content, (U16)((mmi_wcslen(content)+1)*2));
srv_sms_set_sim_id(send_handle, SRV_SMS_SIM_1);
srv_sms_send_msg(send_handle, mmi_rej_by_sms_sendcb, NULL);
}
mmi_rej_by_sms_sendcb为自定义的回调函数,返回发送结果
[em14] |
|