Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: "Wolfgang Riedmann" Newsgroups: comp.lang.clipper.visual-objects Subject: Re: verify sent emails Date: Tue, 11 Sep 2018 17:40:26 +0200 Lines: 132 Message-ID: References: <41227ccc-a7b3-48a1-b5f5-2e4430c4000e@googlegroups.com> <486897a3-6db0-440c-8c1c-b0b1ae9a0d02@googlegroups.com> <86288f62-f300-4ad2-b7ca-9c1be05b054d@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: individual.net d2Qejjriu8lSYmo3pGHsqQ6oZG2xpeumCb45RVOuzYTQFfaw8= Cancel-Lock: sha1:UgEmL1HbO+Ne7e02GVcUOwrWW5c= User-Agent: XanaNews/1.18.1.6 Xref: csiph.com comp.lang.clipper.visual-objects:11915 Hi Trevor, add this class: STATIC GLOBAL GUID_NULL is _WINGUID CLASS OleAutoObjectEx Inherit OleAutoObject EXPORT cIID as STRING // Interface Id of the class EXPORT cClsId as STRING // ClassId of the class (when it is a coclass) EXPORT cProgId as STRING // ProgId idem protect destroyCounter as int METHOD __CreateFromIDispatch(lpIDispatch as ptr) as LOGIC PASCAL Class OleAutoObjectEx LOCAL sIID is _WINGUID LOCAL lpNewIDispatch as ptr LOCAL oDispatch as cIDispatch LOCAL hResult as LONG BEGIN SEQUENCE IF lpIDispatch != null_ptr IF SLen(self:cIID) > 0 oDispatch := OBJECT(_cast, lpIDispatch) IF oDispatch != null_object IF CreateGuidFromString(cIID, @sIID) .and. ! IsEqualGuid(@sIID, @GUID_NULL) hResult := oDispatch:QueryInterface(@sIID, @lpNewIDispatch) IF ( OleFailed(self:hResult) .and. lpNewIDispatch != null_ptr) BREAK ENDIF lpIDispatch := lpNewIDispatch ENDIF oDispatch:Release() oDispatch := null_object ENDIF ENDIF ENDIF RETURN Super:__CreateFromIDispatch(lpIDispatch) RECOVER if (oDispatch != null_object) oDispatch:Release() ENDIF END RETURN FALSE METHOD Init(ObjID, uLcid, fNoFuncArray, fROTCheck) Class OleAutoObjectEx destroyCounter := 0 IF IsNil(ObjID) .and. SLen(self:cClsId) > 0 ObjID := self:cClsId ENDIF Super:Init(ObjID, uLcid, fNoFuncArray, fROTCheck) IF SLen(self:cProgId) > 0 self:atomObjName := String2Symbol(self:cProgId) ENDIF RETURN self Wolfgang Trev wrote: > On Tuesday, 11 September 2018 08:41:52 UTC+1, Trev wrote: > > On Tuesday, 11 September 2018 06:18:50 UTC+1, Wolfgang Riedmann > > wrote: > > > Hi Trevor, > > > > > > you could use a X# COM DLL. You can find source and sample here: > > > > > > https://www.riedmann.it/download/SendMailCOM.zip > > > > > > Wolfgang > > > > > > > > > Trev wrote: > > > > > > > On Saturday, 4 August 2018 06:23:21 UTC+1, > > > > dextrasist...@gmail.com wrote: > > > > > Hello everybody > > > > > > > > > > With a routine that someone handed me > > > > > in this group ... I can send emails with cdo.message > > > > > > > > > > Is there any way I can verify that the mail was sent? > > > > > I have the data of my client's email account (username, > > > > > password) Could I get the sent tray? > > > > > > > > > > Thanks in advance > > > > > > > > > > jorge accinelli > > > > > Buenos Aires > > > > > > > > Hi Phil > > > > > > > > I am revisiting one of my apps and VO (after many years) as my > > > > customer is using a new host who requires authenticated smtp > > > > login. After spending a day trying to get csmtp and other > > > > methods working (and also remembering how to use VO!) I started > > > > looking for other mail providers and SendGrid in particular. > > > > Do you care to share your interface code to save me another day > > > > or two scratching my head ;-) > > > > > > > > I was surprised and pleased to find this group was still alive > > > > and that there are a few old-timers still posting. > > > > > > > > Best regards > > > > Trevor > > > > > > > > > > > > -- > > > > Thanks Wolfgang I will see if I can make it work. > > > > Best regards > > Trevor > > Hi Wolfgang > > I have just tried you demo but unfortunately my version of VO is 2.8 > SP3 which doesn't have the OLEAutoObjectEx class which I believe was > introduced in SP4. > > Best regards > Trevor --