problem with psSendmail and Paradox 10I am using psSendmail 1.1 and Paradox 10 10.0.0.990 on a Windows 2000 Pro SP4 machine. The code below (from a script) sends the message but disappears at the "lngRetVal = SendMsg(strMsgText)" instruction. The email is sent but Paradox keeps running and consumes a 1500 Mhz P-4. I have to close Paradox to get back to normal usage., Any thoughts?, , below is part of the script:, , Uses psSendMail, , QuickSend(Host Cptr, strFrom Cptr, SendTo Cptr, Subject Cptr, MsgText Cptr ) clong ;for longint, , Connect( xHost cptr) clong ;0 (Connected) -1 (Not Connected), , InitMsg( xHost cptr, xmsgFrom cptr, xmsgTo cptr, xCC cptr, xBCC cptr, xSubject cptr) clong ;0 (No Error) -1 (No Host specified) -2 (No from e-mail address supplied) -3 (No send to e-mail address(es) supplied), , Attach( xFilename cptr)clong ;0 file found, -1 couldn't find file to attach, , SendMsg( xMsgText cptr)clong ;0 (No Error) -1 (MsgText is blank) -2 (Error occurred while sending message), , Quit(), , endUses, , method r... | 2 replies. Last post: |  Dan | I think the issue may be that while you have declared strMsgText as a string variable you have not declared sline. I do not see where the value for sLine is set and therefor you may be passing an unassigned value to the dll. This may cause unforseen problems, make sure strMsgText has a value. Probably even an empty string would work. |
|