Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

stdout redirection

50 views
Skip to first unread message

cal

unread,
May 7, 2013, 9:12:46 AM5/7/13
to
I'm using xHarbour.com Professional version in a console app. I'm
running an smtp mail agent this way:

__run (mailsend...<long string of options>, @nReturnVal)

It works fine, except that mailsend writes any error mesages to the
screen as well as to its log file. I want to prevent writing of error
mesages to the screen, since i capture the log file.

How do I redirect the mailsend screen output to nul? I've tried
putting ">NUL" at the end of the command string.

Thanks.
Cal

Ella

unread,
May 7, 2013, 9:39:55 AM5/7/13
to
Hello,

According to their documentation:
http://code.google.com/p/mailsend/#Synopsis

there is a "-q" command line option for "quiet" mode.

Ella

cul...@gmail.com

unread,
May 7, 2013, 10:06:17 AM5/7/13
to
Cal

use xharbour hb_sendmail function to send emails

Regards
Luiz
Cal

cal

unread,
May 7, 2013, 2:06:47 PM5/7/13
to
Thanks, Luiz.

I will take a look at this. Where will I find the documenttion to
this function and explanation for all the calling parameters.

I have been using BLAT for about 10 years, but my client now a
different smtp server and the MS security requirements won't let BLAT
"play". Mailsend works, actually.

The reason for my original post was that mailsend logging is new
functionality and it has a few bugs, which are being worked on. The
main problem is that error messages are written to stdout and go to
the log file. I have a wrapper that I wrote to utilize BLAT and the
messages from mailsend get messy when written all over my cut little
app screen. For now, I have the redirection working and can proceed.

But I would be interested in trying HB_sendmail(), so please point me
to the docs.

Thanks for your help.

Cal


On Tue, 7 May 2013 07:06:17 -0700 (PDT), "cul...@gmail.com"
<cul...@gmail.com> wrote:

>Cal
>
>use xharbour hb_sendmail function to send emails
>
>Regards
>Luiz
>

cal

unread,
May 7, 2013, 2:09:26 PM5/7/13
to
Thanks Ella.

-q is pretty new in maiselnd and has a bug, which I have reported to
the author.

Happy springtime!

Cal


On Tue, 7 May 2013 06:39:55 -0700 (PDT), Ella <ella...@gmail.com>
wrote:
0 new messages