MAPI Delivery Request
- From: "Andy Trezise" <andy@xxxxxxxx>
- Date: Thu, 28 Aug 2008 11:36:24 +0100
How can I request a delivery receipt acknowledgement using MAPI
I am using MSMAPI32.OCX to send the mail
This is the code I'm using...
LPARAMETERS cEmail, cSubject, cBody, cNote
ThisForm.oMailSession.SignOn()
WITH ThisForm.oMailSend
.SessionID = ThisForm.oMailSession.SessionID
.MsgIndex = -1
.Compose
.MsgReceiptRequested = .t. && ALSO WANT A DELIVERY RECEIPT REQUEST
.MsgSubject = IIF(EMPTY(cSubject)," ",STRTRAN(cSubject,"$$$",CHR(13)))
.AddressResolveUI = .f.
.AddressModifiable = .t.
.RecipDisplayName = IIF(EMPTY(cEmail)," ",STRTRAN(cEmail,"$$$",CHR(13)))
.MsgNoteText = IIF(EMPTY(cBody), " ",STRTRAN(cBody,"$$$",CHR(13)))
IF !EMPTY(cNote)
IF EMPTY(cBody)
.MsgNoteText = ThisForm.Extract_Note(cNote)
ELSE
.MsgNoteText = .MsgNoteText + ThisForm.Extract_Note(cNote)
ENDIF
ENDIF
.MsgNoteText = RTRIM(.MsgNoteText) + SPACE( MEMLINES(FILETOSTR(cList)) +
1)
x = .Send(.t.)
ENDWITH
ThisForm.oMailSession.SignOff()
.
- Follow-Ups:
- Re: MAPI Delivery Request
- From: Dan Freeman
- Re: MAPI Delivery Request
- Prev by Date: Re: Unused functions
- Next by Date: Re: Unused functions
- Previous by thread: Unused functions
- Next by thread: Re: MAPI Delivery Request
- Index(es):