Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.clipper.visual-objects > #13002

Re: EMail

From "Wolfgang Riedmann" <wriedmann@gmail.com>
Newsgroups comp.lang.clipper.visual-objects
Subject Re: EMail
Date 2020-06-04 10:35 +0200
Message-ID <hjrq1sF3e9dU1@mid.individual.net> (permalink)
References <r9u83l$9n4$1@dont-email.me> <hih8hdF348uU1@mid.individual.net> <hih8k0F34kaU1@mid.individual.net> <rabl62$iut$1@dont-email.me>

Show all headers | View raw


Hi James,


sorry, I have been very busy the last days.

Here is a OleAutoObjectEx class for Pre-SP4:

TextBlock OleAutoObjectEx für pre-SP4

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       


HTH

Wolfgang



James Martin wrote:

> Thanks. I tried this link after seeing it in an earlier post. It does
> not work with my VO version 2.8 build 2830. It is missing the
> OLEAutoObjectEx. Changing it to OLEAutoObject didn't work either.
> 
> I'm testing SWithMail.exe and that works, but I miss error checking.
> Have to delete the log file every time before sending, then read it
> in to check.
> 
> Any ideas on how to change your program to work with build 2830?
> 
> James
> 
> On 5/19/20 1:20 AM, Wolfgang Riedmann wrote:
> > Hi James,
> > 
> > sorry, wrong link:
> > 
> > https://www.riedmann.it/download/SendMailCOM.zip
> > 
> > Wolfgang
> > 
> > > Hi James,
> > > 
> > > if you would like to use a COM module, you can find something
> > > here:
> > > 
> > > https://riedmann.it/download/SendMailNET.zip
> > > 
> > > It is a COM module written in X# using the standard .NET email
> > > classes and can be used in side-by-side mode, without registering
> > > it on the system.
> > > 
> > > Wolfgang
> > > 
> > > James Martin wrote:
> > > 
> > > > The EMail class I was using does not work well anymore due to
> > > > encryption, etc. I'm just wondering if there is a good email
> > > > class for VO that sends emails with attachments through SSL.
> > > > Thanks
> > > > 
> > > > James
> > 
> > 
> > 



-- 

Back to comp.lang.clipper.visual-objects | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

EMail James Martin <james@northwoodlumber.com> - 2020-05-18 11:03 -0400
  Re: EMail "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-05-19 07:18 +0200
    Re: EMail "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-05-19 07:20 +0200
      Re: EMail James Martin <james@northwoodlumber.com> - 2020-05-23 13:06 -0400
        Re: EMail "Wolfgang Riedmann" <wriedmann@gmail.com> - 2020-06-04 10:35 +0200
  Re: EMail Franz Rachbauer <office@rachbauer.org> - 2020-05-19 07:25 +0200
    Re: EMail Kevin Butler <baksoftgroup@gmail.com> - 2020-06-11 18:14 -0700
      Re: EMail sherlocksoftware@gmail.com - 2020-06-12 03:20 -0700
      Re: EMail Franz Rachbauer <office@rachbauer.org> - 2020-06-12 16:08 +0200
      Re: EMail Γεωργιος Τριτσος <georgetritsos73@gmail.com> - 2023-06-08 11:25 -0700
  Re: EMail D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2020-05-21 00:29 +0200
    Re: EMail James Martin <james@northwoodlumber.com> - 2020-05-23 13:06 -0400
      Re: EMail D.J.W. van Kooten <vankooten@removethis.ic2.com> - 2020-06-08 23:19 +0200
  Re: EMail sherlocksoftware@gmail.com - 2020-06-06 01:26 -0700

csiph-web