|
|
|
Почему не заполняются данные о получателе при использвании MAPISendMail?
|
|||
|---|---|---|---|
|
#18+
Подскажите почему не заполняются поля для получателя (адрес), хотя структуру вроде по правилам заполняю. Вот код: MAPISendMail = (LPMAPISENDMAIL)GetProcAddress(hDll,"MAPISendMail"); ULONG err; MapiFileDesc attachment = {0, 0,(ULONG)-1, lpPath, lpPath, NULL}; MapiRecipDesc recip; recip.ulReserved = 0; recip.ulRecipClass = MAPI_TO; recip.lpszAddress = email; recip.lpszName = "LPTSTR lpszAddress"; recip.ulEIDSize = 0; recip.lpEntryID = NULL; MapiMessage note = {0, // reserved, must be 0 "Счет", // тема "", // текст 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 recip, //данные о получателе 1, //кол-во прикрепленных файлов &attachment}; //стр-ра по файлу err = MAPISendMail(0L, 0L, ¬e, MAPI_DIALOG | MAPI_LOGON_UI | MAPI_NEW_SESSION, 0L); if (err != SUCCESS_SUCCESS) { TreatError("MAPISendMail()", err); return; } Заранее спасибо! ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 12.03.2007, 13:06 |
|
||
|
|

start [/forum/topic.php?fid=57&tid=2029285]: |
0ms |
get settings: |
8ms |
get forum list: |
12ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
150ms |
get topic data: |
7ms |
get forum data: |
2ms |
get page messages: |
22ms |
get tp. blocked users: |
1ms |
| others: | 195ms |
| total: | 403ms |

| 0 / 0 |
