#import "jmail.dll"
using namespace jmail;    ::CoInitialize(NULL);     CString stratt;    jmail::IMessagePtr jmsg;   
    HRESULT hr=jmsg.CreateInstance(__uuidof(jmail::Message));
    if(SUCCEEDED(hr))   
    {//!!没有进入   
        AfxMessageBox("Succeed");   
        //....   
    }  
    else
    {
        AfxMessageBox("Failed");        return;
    }
    jmail::IPOP3Ptr jpop;
    jpop.CreateInstance(__uuidof(jmail::POP3));
    LPCTSTR lp = m_strTo;
    jmsg->AddRecipient(lp,"","");
    lp = m_strSubject;
    jmsg->Subject = lp;
    lp = m_strBody;
    jmsg->Body = lp;
    lp = m_strFrom;
    jmsg->From - lp;    jmsg->AddCustomAttachment((_bstr_t)stratt, (_bstr_t)"jmail",VARIANT_FALSE);
    
        jmsg->Send((LPCTSTR)m_strServer,VARIANT_FALSE);
    }
    catch(_com_error e)
    {
        CString strerr;
        strerr.Format("%s\r\n错误描述是%s",(LPCTSTR)e.ErrorMessage(), (LPCTSTR)e.Description());
        AfxMessageBox( strerr );
    }
    AfxMessageBox("发送成功");
createinstance失败,一直都是“失败”,什么原因啊?请指教!!!