Desmond, No problem, glad to help. Dave
-----Original Message----- From: ProFox [mailto:[email protected]] On Behalf Of Desmond Lloyd Sent: 01 July 2013 17:43 To: ProFox Email List Subject: Re: VFP6: Blat.dll woes Thank you very much.... If you do not mind, will adapt and see if I can get a little consistency..... Regards, Desmond On 1 July 2013 10:45, Dave Crozier <[email protected]> wrote: > I assume it is a typo, but if not then the '" -to "+ lrecipient > shouldn't have the "-to" in it, simply the "-t" > > Dave > > -----Original Message----- > From: ProFox [mailto:[email protected]] On Behalf Of Desmond > Lloyd > Sent: 01 July 2013 16:38 > To: ProFox Email List > Subject: VFP6: Blat.dll woes > > Probably a little off subject. But thought I would approach the > people on this list because it is running Blat from within VFP6. > > Really odd issue. Have two or three program that send out an email > upon the occurrence of certain events. Has been working fine. Still > is on two of my servers. There are two others that are ran from the > individual workstations that have stopped running, returning an error code, > 2 or > 1. Have ran portions of the emails that are working in different > environments and they work. Whenever I "adapt" the "sending portion" > of the code to the application they stop! > > Have got one running this morning and have gotten it to work on my > workstations and servers and will attempt to adapt, but am concerned > I will run into the same thing... > > Anyone seen this before? Perhaps an alternative recommendation for > the generation of these emails. (although everybody seems to love > Blat!) > > Below is the code I am using: I am thinking it is a server issue, but > would appreciate additional input. > > cFrom = '[email protected]' > lcSubject = 'Automated Email Test: 07/01' > set safety off > lcBody = 'This is a Test of an automated email system. Please reply if > received'+ CHR(13) + CHR(10) + CHR(13) + CHR(10) lcRecipient = ' > [email protected]' > lcCopyto = '[email protected]' > STRTOFILE(lcbody, "Body.txt") > lcstring = 'Body.txt -s "' + lcsubject + '" -to ' + lcrecipient + ' -f > ' + lcfrom + ' -u '+'bob'+' -pw '+'password'+ ' -server '+'myemailserver' > dll_name = 'blat.dll' > EXTERNAL PROCEDURE "Send" > DECLARE INTEGER Send in "&dll_name" STRING blatstring lnresult = > send(lcstring) IF lnresult > 0 wait window 'Result: > '+alltrim(str(lnREsult)) ENDIF > > Regards, > Desmond > > > . > > > --- StripMime Report -- processed MIME parts --- multipart/alternative > text/plain (text body -- kept) > text/html > --- > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/[email protected] ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.

