Click here to Skip to main content
15,921,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: CTime and CString Pin
Jason Henderson5-Sep-02 16:28
Jason Henderson5-Sep-02 16:28 
GeneralRe: CTime and CString Pin
anju5-Sep-02 18:26
anju5-Sep-02 18:26 
GeneralImages in CListCtrl report columns Pin
IGx895-Sep-02 15:50
IGx895-Sep-02 15:50 
QuestionHow can I know which computer access the file of my computer? Pin
Member 18556085-Sep-02 13:49
Member 18556085-Sep-02 13:49 
GeneralSending mail ... Pin
Hadi Rezaee5-Sep-02 12:57
Hadi Rezaee5-Sep-02 12:57 
GeneralRe: Sending mail ... Pin
Chris Losinger5-Sep-02 13:14
professionalChris Losinger5-Sep-02 13:14 
GeneralRe: Sending mail ... Pin
Hadi Rezaee5-Sep-02 13:26
Hadi Rezaee5-Sep-02 13:26 
GeneralRe: Sending mail ... Pin
Hadi Rezaee6-Sep-02 8:33
Hadi Rezaee6-Sep-02 8:33 
Hello Mr.Cheris,
I have problem in using CMapiMessage and CMapiSession classes ...
Please help me ...
It's an example of CMapi classes:

CMapiMessage message;
message.m_To.Add(_T("pjn@indigo.ie"));
message.m_CC.Add(_T("SMTP:pjn@indigo.ie"));
message.m_BCC.Add(_T("SMTP:pj.naughter@softech-telecom.com"));
message.m_sSubject = _T("Demo email using CMapiSession - Please ignore");
message.m_sBody = _T("This is the body of the message\r\nRegards,\r\nCMapiMessage");
message.m_Attachments.Add(_T("C:\\autoexec.bat"));
message.m_AttachmentTitles.Add(_T("my autoexec.bat"));

//Setup the mapi session
CMapiSession session;
BOOL bMapiInstalled = session.MapiInstalled();

//Logon to MAPI
BOOL bLoggedOn = session.Logon(_T("PJ Naughter")); //You will need to change this to use a MAPI profile
//setup on your computer. If you want CMapiSession to
//bring up a dialog to allow a MAPI profile to be
//interactively chosen, then you will need to create
//a Window in your app using the normal MFC mechanims
if (bLoggedOn)
{

//Send the message
BOOL bSent = session.Send(message);
}

First question: Where i should specify Mail Sender in CMapiMessage class ???

Second question: I can't understand what is CMapiSession::Logon function ?
What it do exactly ?

Please help me ...
Regards


My month article: Game programming by DirectX by Lan Mader.
Please visit in: www.geocities.com/hadi_rezaie/index.html

Hadi Rezaie
GeneralRe: Sending mail ... Pin
Chris Losinger6-Sep-02 11:20
professionalChris Losinger6-Sep-02 11:20 
GeneralCSocket new-b question Pin
Anonymous5-Sep-02 12:36
Anonymous5-Sep-02 12:36 
GeneralRe: CSocket new-b question Pin
jparsons5-Sep-02 12:38
jparsons5-Sep-02 12:38 
GeneralRe: CSocket new-b question Pin
anju5-Sep-02 18:45
anju5-Sep-02 18:45 
GeneralRegister DLL in App Pin
Anonymous5-Sep-02 12:05
Anonymous5-Sep-02 12:05 
GeneralRe: Register DLL in App Pin
Joaquín M López Muñoz5-Sep-02 12:20
Joaquín M López Muñoz5-Sep-02 12:20 
GeneralRe: Register DLL in App Pin
Anonymous5-Sep-02 12:29
Anonymous5-Sep-02 12:29 
GeneralRe: Register DLL in App Pin
Joaquín M López Muñoz5-Sep-02 12:41
Joaquín M López Muñoz5-Sep-02 12:41 
GeneralRe: Register DLL in App Pin
Anonymous5-Sep-02 13:24
Anonymous5-Sep-02 13:24 
GeneralCreating Custom Control Pin
MightyThor5-Sep-02 11:15
MightyThor5-Sep-02 11:15 
GeneralRe: Creating Custom Control Pin
Roger Allen6-Sep-02 2:06
Roger Allen6-Sep-02 2:06 
GeneralRe: Creating Custom Control Pin
MightyThor7-Sep-02 9:14
MightyThor7-Sep-02 9:14 
GeneralCTree, change selection on right click Pin
brianwelsch5-Sep-02 11:02
brianwelsch5-Sep-02 11:02 
GeneralRe: CTree, change selection on right click Pin
Tomasz Sowinski5-Sep-02 11:13
Tomasz Sowinski5-Sep-02 11:13 
GeneralRe: CTree, change selection on right click Pin
brianwelsch5-Sep-02 16:04
brianwelsch5-Sep-02 16:04 
GeneralVisual C++ book Pin
marekm5-Sep-02 10:45
marekm5-Sep-02 10:45 
GeneralRe: Visual C++ book Pin
brianwelsch5-Sep-02 10:53
brianwelsch5-Sep-02 10:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.