短信发送功能的调用

 
    
调用smartphone里的短信发送功能:
mailFields .cbSize = sizeof(MAILCOMPOSEFIELDS);
     mailFields.dwFlags = MCF_ACCOUNT_IS_TRANSPORT;
     mailFields.pszBcc = TEXT("1234");
     mailFields.pszBody = message;
     mailFields.pszAccount = _T("SMS");
     mailFields.pszMsgClass = _T("IPM.SMStext"); (IPM.Note 调用OUTLOOK Email功能)
   
     MailComposeMessage(&mailFields);
 
调用e-mail功能:
    只要把pszAccount设置_T( ActiveSync ); 就行
 

你可能感兴趣的:(短信发送功能的调用)