Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Outlook/MAPI dialogs on sending email
Message
De
09/08/2002 02:28:14
 
 
À
08/08/2002 01:00:50
Information générale
Forum:
Visual FoxPro
Catégorie:
COM/DCOM et OLE Automation
Divers
Thread ID:
00686099
Message ID:
00687837
Vues:
33
Hi Ed,

Thanks for the reply, actually I have tried in the Nigel Coates' MAPIMAIL class, but nothing happened.

This is part of code in methode sendmail from the class :
* Create message object
THIS.oMessage=CREATEOBJECT("MSMAPI.MAPIMessages.1")
WITH THIS.oMessage
	.SessionID=lnSessionID
	.Compose()
	.MsgIndex=-1
	.MsgNoteText=THIS.cBodyText
	.MsgSubject=THIS.cSubject
	.MsgReceiptRequested=llReceipt
	.RecipDisplayName=THIS.aRecipients[1]
	* Multiple recipients
	FOR lnLoop=2 TO ALEN(THIS.aRecipients,1)
		.RecipIndex=.RecipCount
		.RecipDisplayName=THIS.aRecipients[lnLoop]
	ENDFOR
	* Copy recipients
	IF THIS.nCCRecipCount>0
		FOR lnLoop=1 TO ALEN(THIS.aCCRecipients,1)
			.RecipIndex=.RecipCount
			.RecipDisplayName=THIS.aCCRecipients[lnLoop]
			.RecipType=2
		ENDFOR
	ENDIF
	* Blind copy recipients
	IF THIS.nBCCRecipCount>0
		FOR lnLoop=1 TO ALEN(THIS.aBCCRecipients,1)
			.RecipIndex=.RecipCount
			.RecipDisplayName=THIS.aBCCRecipients[lnLoop]
			.RecipType=3
		ENDFOR
	ENDIF
	* Add any required attachment files
	lnAttachPos=(LEN(THIS.cBodyText)-ALEN(THIS.aAttachmentFiles,1))-1
	IF NOT EMPTY(THIS.aAttachmentFiles[1])
		.AttachmentPosition=lnAttachPos
		.AttachmentPathName=THIS.aAttachmentFiles[1]
		* Multiple attachment files
		FOR lnLoop=2 TO ALEN(THIS.aAttachmentFiles,1)
			.AttachmentIndex=.AttachmentCount
			lnAttachPos=lnAttachPos+1
			.AttachmentPosition=lnAttachPos
			.AttachmentPathName=THIS.aAttachmentFiles[lnLoop]
		ENDFOR
	ENDIF
	RUN /N7 cscript waitforoutlook.vbs  -> this is your script
	.Send(llShowOutlook)
ENDWITH
regards,


Budianto
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform