1. Blat wrapper question

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

new topic     » topic index » view message » categorize

2. Re: Blat wrapper question

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/

new topic     » goto parent     » topic index » view message » categorize

3. Re: Blat wrapper question

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

new topic     » goto parent     » topic index » view message » categorize

4. Re: Blat wrapper question

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?

new topic     » goto parent     » topic index » view message » categorize

5. Re: Blat wrapper question

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

new topic     » goto parent     » topic index » view message » categorize

6. Re: Blat wrapper question

Where would you suggest that I put the blat.dll? Haven't used one before.

new topic     » goto parent     » topic index » view message » categorize

7. Re: Blat wrapper question

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

new topic     » goto parent     » topic index » view message » categorize

8. Re: Blat wrapper question

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.

new topic     » goto parent     » topic index » view message » categorize

9. Re: Blat wrapper question

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

new topic     » goto parent     » topic index » view message » categorize

10. Re: Blat wrapper question

Thanks, it's not there now. Could you email it to me directly?

Thanks.

new topic     » goto parent     » topic index » view message » categorize

11. Re: Blat wrapper question

> 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

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu