1. Blat wrapper question
- Posted by George Walters <gwalters at sc.rr.com> May 12, 2005
- 461 views
- Last edited May 13, 2005
When I type this command directly from a command prompt in XP the email gets sent correctly. But from a system_exec I get a return code of 1 which the documentatin says a bad command string or non existent file. Does anyone know why? I see nothing wrong when the puts displays the cmdString.
cmdString = "blat.exe " & rptFile & " -to gwalters at sc.rr.com -subject \"archived invoice\""
puts(1, cmdString & "\n") tmp = gets(0) rc = system_exec(cmdString,0) trace(1) </eucode
the var rptFile does exist. rc has a value of 1. }}}
2. Re: Blat wrapper question
- Posted by cklester <cklester at yahoo.com> May 12, 2005
- 472 views
- Last edited May 13, 2005
George Walters wrote: > > When I type this command directly from a command prompt in XP the email > gets sent correctly. But from a system_exec I get a return code of 1 which > the documentatin says a bad command string or non existent file. Does > anyone know why? I see nothing wrong when the puts displays the cmdString. > > }}} <eucode> > cmdString = "blat.exe " & rptFile & " -to gwalters at sc.rr.com -subject > \"archived invoice\"" > > puts(1, cmdString & "\n") > tmp = gets(0) > rc = system_exec(cmdString,0) > trace(1) > </eucode> {{{ > the var rptFile does exist. rc has a value of 1. Are you issuing the "-install" command first? I do Also, I use the built-in sendmail() function (no need for your commandline execution). -=ck "Programming in a state of EUPHORIA." http://www.cklester.com/euphoria/
3. Re: Blat wrapper question
- Posted by George Walters <gwalters at sc.rr.com> May 12, 2005
- 466 views
- Last edited May 13, 2005
I did the -install once. I don't think I need to do it again with each use? It works directly from the command line but not with system_exec.....??
4. Re: Blat wrapper question
- Posted by George Walters <gwalters at sc.rr.com> May 13, 2005
- 455 views
I found what works, but it doesn't not make sense. This works
cmdString = "blat.exe " & rptFile & " -to gwalters at sc.rr.com -q -subject archived_invoice" rc = system_exec(cmdString,0) trace(1)
Removing the quotes from around the subject works. However when I type the command directly at the command prompt it does work. Is there something about system_exec that I don't understand?
5. Re: Blat wrapper question
- Posted by Michael Raley <thinkways at yahoo.com> May 13, 2005
- 468 views
George Walters wrote: > > > When I type this command directly from a command prompt in XP the email > gets sent correctly. But from a system_exec I get a return code of 1 which > the documentatin says a bad command string or non existent file. Does > anyone know why? I see nothing wrong when the puts displays the cmdString. > > }}} <eucode> > cmdString = "blat.exe " & rptFile & " -to gwalters at sc.rr.com -subject > \"archived invoice\"" > > puts(1, cmdString & "\n") > tmp = gets(0) > rc = system_exec(cmdString,0) > trace(1) > </eucode > > the var rptFile does exist. rc has a value of 1. > you can put the subject line into a text file and use the -sf switch you can also try using the same command line from the blatsend() function in the wrapper, omitting the "blat.exe " part. --"ask about our layaway plan". --
6. Re: Blat wrapper question
- Posted by George Walters <gwalters at sc.rr.com> May 18, 2005
- 461 views
Where would you suggest that I put the blat.dll? Haven't used one before.
7. Re: Blat wrapper question
- Posted by Mario Steele <eumario at trilake.net> May 18, 2005
- 460 views
George Walters wrote: > > Where would you suggest that I put the blat.dll? Haven't used one before. > The best suggestion, would be to drop it into windows\system, or windows\system32, as thoes are global, and would allow you to access it, no matter what. Especially if you use blat.dll among more then 1 program. Mario Steele http://enchantedblade.trilake.net Attaining World Dominiation, one byte at a time...
8. Re: Blat wrapper question
- Posted by George Walters <gwalters at sc.rr.com> May 18, 2005
- 466 views
- Last edited May 19, 2005
Someone posted a note on how to convert plain text to html to preserve the spacing. I can't find the note in the archives. Can someone remind me of the note. I would like to try the code.
9. Re: Blat wrapper question
- Posted by "Juergen Luethje" <j.lue at gmx.de> May 18, 2005
- 448 views
- Last edited May 19, 2005
George Walters wrote: > Someone posted a note on how to convert plain text to html to preserve > the spacing. That was me. > I can't find the note in the archives. Can someone remind me of the > note. I would like to try the code. The code is not usable, because it was messed up by the EUforum software. {'&','a','m','p',';'} (written as string) was replaced with "&" {'&','l','t',';'} (written as string) was replaced with "<" {'&','g','t',';'} (written as string) was replaced with ">" That's why I posted it as "attachment". It was available at http://www.RapidEuphoria.com/uploads/txt2html.zip If it's not there anymore, let me know. Then I'll upload it again. Regards, Juergen PS: I've started working on a much more advanced version, that automatically recognizes headings and URLs, does smart word wrapping and so on. It's much fun!
10. Re: Blat wrapper question
- Posted by George Walters <gwalters at sc.rr.com> May 18, 2005
- 453 views
- Last edited May 19, 2005
Thanks, it's not there now. Could you email it to me directly? Thanks.
11. Re: Blat wrapper question
- Posted by "Juergen Luethje" <j.lue at gmx.de> May 19, 2005
- 459 views
> posted by: George Walters <gwalters at sc.rr.com> > > Thanks, it's not there now. Could you email it to me directly? > > Thanks. ; Done. \/ Regards, Juergen