Article ID: 103847
Article Last Modified on 10/30/2006
void f1()
{
long err;
MapiFileDesc file = { 0, 0, -1L, "c:\\tmp\tmp.wk3", "budget17.wk3",
NULL };
MapiMessage note = { 0, NULL, NULL, NULL, NULL, NULL, 0, NULL, 0,
NULL, 1, &file };
err = MAPISendMail(0L, 0L, ¬e, MAPI_DIALOG, 0L);
if (err != SUCCESS_SUCCESS)
printf("Unable to send the message\n");
}
void f2()
{
long err;
MapiFileDesc file = { 0, 0, -1L, "c:\\tmp\tmp.wk3", "budget17.wk3",
NULL };
MapiMessage note = { 0, NULL,"Attached is the budget proposal.\r\nSee
you Monday.\r\n",NULL, NULL, NULL, 0, NULL, 2, NULL, 1, &file };
MapiRecipDesc recip[2];
recip[0].ulReserved = 0;
recip[0].ulRecipClass = MAPI_TO;
recip[0].lpszName = "Sally Jones";
recip[0].lpszAddress = NULL;
recip[0].ulEIDSize = 0;
recip[0].lpEntryID = NULL;
recip[1].ulReserved = 0;
recip[1].ulRecipClass = MAPI_CC;
recip[1].lpszName = "Marketing";
recip[1].lpszAddress = NULL;
recip[1].ulEIDSize = 0;
recip[1].lpEntryID = NULL;
note.lpRecips = recip;
err = MAPISendMail(0L, 0L, ¬e, 0L, 0L);
if (err != SUCCESS_SUCCESS)
printf("Unable to send the message\n");
}
Additional query words: 3.00
Keywords: KB103847