A
anu.mishra
HI,
I am trying to send a mail using MAPI.
If the file name passed contains japanese characters, then nothing
happnes. No mail is sent.
Also i dont get any error.
Can anyone help in this?
----
pFiles.lpszPathName="" ; directory path
pFiles.lpszFileName="" ; // here the file names come which has
japanese characters.
lpszDescription=CNonUCStr(m_Nodes[0].m_Description).GetCopy();
MapiMessage note = {0, // reserved, must be 0
lpszDescription, // subject
NULL, // note text
NULL, // NULL = interpersonal message
NULL, // no date; MAPISendMail ignores it
NULL, // no conversation ID
0L, // no flags, MAPISendMail ignores it
NULL, // no originator, this is ignored too
0, // zero recipients
NULL, // NULL recipient array
n, // one attachment
pFiles}; // the attachment structure
try
{
HMODULE hlibMAPI=LoadLibrary(_T("MAPI32.DLL"));
if(hlibMAPI)
{
LPMAPILOGON m_fpMAPILogon = (LPMAPILOGON) GetProcAddress(hlibMAPI,
"MAPILogon");
LPMAPILOGOFF m_fpMAPILogoff = (LPMAPILOGOFF)
GetProcAddress(hlibMAPI, "MAPILogoff");
LPMAPISENDMAIL lpfnSendMail=(LPMAPISENDMAIL)GetProcAddress(hlibMAPI,
"MAPISendMail");
}
Thanks,
Anu
I am trying to send a mail using MAPI.
If the file name passed contains japanese characters, then nothing
happnes. No mail is sent.
Also i dont get any error.
Can anyone help in this?
----
pFiles.lpszPathName="" ; directory path
pFiles.lpszFileName="" ; // here the file names come which has
japanese characters.
lpszDescription=CNonUCStr(m_Nodes[0].m_Description).GetCopy();
MapiMessage note = {0, // reserved, must be 0
lpszDescription, // subject
NULL, // note text
NULL, // NULL = interpersonal message
NULL, // no date; MAPISendMail ignores it
NULL, // no conversation ID
0L, // no flags, MAPISendMail ignores it
NULL, // no originator, this is ignored too
0, // zero recipients
NULL, // NULL recipient array
n, // one attachment
pFiles}; // the attachment structure
try
{
HMODULE hlibMAPI=LoadLibrary(_T("MAPI32.DLL"));
if(hlibMAPI)
{
LPMAPILOGON m_fpMAPILogon = (LPMAPILOGON) GetProcAddress(hlibMAPI,
"MAPILogon");
LPMAPILOGOFF m_fpMAPILogoff = (LPMAPILOGOFF)
GetProcAddress(hlibMAPI, "MAPILogoff");
LPMAPISENDMAIL lpfnSendMail=(LPMAPISENDMAIL)GetProcAddress(hlibMAPI,
"MAPISendMail");
}
Thanks,
Anu