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
---

_______________________________________________
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/caajxvaner4tm737bg93sg7rkgxts2t9eqop21sarq3qc1vb...@mail.gmail.com
** 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.

Reply via email to