By straightforward I meant that you could mimic examples available on google et al. For example, here's a perl subroutine:

#mail the state of the cgi
sub mail() {
        my %message = $_[0];
        open(SENDMAIL,"|/usr/sbin/sendmail -oi -t -odq")
                or die "Can't fork for sendmail: $!\n";
        print SENDMAIL <<"EOF";
From: Bill Conlon <[EMAIL PROTECTED]>
To: Bill Conlon <[EMAIL PROTECTED]>
Subject:  TTPCMS bug report

EOF
        while ( my ($k,$v) = each %message) {
                print "$k \= $k => $v\n";
                }
close(SENDMAIL);
}

called by the following snippet:
&mail(%message); #%message is a hash containing info to be send in the body

The point is that it's pretty simple to write your output to sendmail, just like writing it to a webstar folder.

I don't think you need to worry about overloading sendmail, though spawning a new perl process for each mail is not efficient. If that's an issue, you might have perl query the database instead of witango.

Bill

William M. Conlon, P.E., Ph.D.
To the Point
2330 Bryant Street
Palo Alto, CA 94301
   vox:  650.327.2175 (direct)
   fax:  650.329.8335
mobile:  650.906.9929
e-mail:  mailto:[EMAIL PROTECTED]
   web:  http://www.tothept.com


On Mar 27, 2007, at 4:00 PM, Wayne Irvine wrote:

William M Conlon at [EMAIL PROTECTED] wrote:

I use postfix, but my witango interface is through the mail action.

My experience with WebStar Mail was that it couldn't keep up with the
Witango action and missed a lot of mails. IS this the same with Postfix or
is it quicker? We're talking 6000 emails.

It's straightforward to write a shell or perl script to send mail via
smptd.

Straightforward for you maybe. ;)

Sorry, I'm a bit of a newby when it comes to shell scripts and interfacing
with Witango. Willing to learn!

But won't this have the same issues of overloading due to number of
available transactions on the SMTP server?

Wayne Irvine

                  Byte Services Pty Ltd
               http://www.byteserve.com.au/
                  [EMAIL PROTECTED]
   Ph 02 9960 6099   Mob 0409 960 609   Fax 02 9960 6088

______________________________________________________________________ __
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

________________________________________________________________________
TO UNSUBSCRIBE: Go to http://www.witango.com/developer/maillist.taf

Reply via email to