xsharp.eu • CEmail{} class
Page 1 of 1

CEmail{} class

Posted: Wed Apr 01, 2020 2:13 pm
by Kees Bouw
Hi,

Creating an e-mail object from an existing .eml file does not seem to work in X#.

The code CEmail{cRaw} where cRaw is MemoRead from an .eml file, gives a strange error, see below.

This did work without problem in VO.

SubSystem :BASE
SubCode :0
SubCodeText :Unknown SubCode
GenCode :Argument error
OsCode :0
Severity :2
CanDefault :.F.
CanRetry :.F.
CanSubstitute :.F.
Operation :
Description :Argument error
Tries :0
FuncSym :StrTran
FileHandle :0
FileName :
FuncPtr :0
Arg :uSearch
ArgNum :2
ArgType :NIL
ArgTypeReq :NIL
MaxSize :0
SubstituteType :NIL
CallFuncSym :{(0x0000)0x00000000} CLASS

Kees.

CEmail{} class

Posted: Wed Apr 01, 2020 3:31 pm
by Chris
Hi Kees,

Thanks, I see the problem, it has to do with the way the SDK has been compiled. I can send you a quick fix dll if you need it.

Chris

CEmail{} class

Posted: Wed Apr 01, 2020 6:44 pm
by Kees Bouw
Hi Chris,

If it is not too much trouble I would appreciate that very much. The alternative is for me to add a third party library (Chilkat) to send e-mail which is overkill because only sending basic e-mails is required in this particular web/cgi application. So the quick fix is very welcome!

Kind regards,

Kees.

CEmail{} class

Posted: Wed Apr 01, 2020 8:41 pm
by Chris
Hi Kees,

Yeah, it's easy to send such a fix, please check your email!