MAPI doesnt send mail if file name is japanese

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top