Sending mail error


#1

Hi all,

Is there a way that I can change how the script sends email.

Instead of using /usr/lib/sendmail -oi -t -ODeliveryMode=b -OErrorMode=m
get it to use "cat message |mail -s “Subject” user@domain.com

sendmail: illegal option – O
sendmail: usage: sendmail [ -t ] [ -fsender ] [ -Fname ] [ -bp ] [ -bs ] [
arg … ]
Could not send mail :frowning:

Tried to launch this command: /usr/lib/sendmail -oi -t -ODeliveryMode=b
-OErrorMode=m
[Mon Jul 24 15:17:06 2000] [error] [client 127.0.0.1] Premature end of
script headers: /opt/rt/bin/cgi/webrt.cgi

Tony Wade (Postmaster)
The Internet Solution
Tel: (+27 11) 283 5483
Mobile: (+27 83) 326 9866
E-mail: postmaster@is.co.za
#include <std/disclaimer.h>


#2

Is there a way that I can change how the script sends email.

Yes, there should be … check for “sendmail” in config.pm.

Instead of using /usr/lib/sendmail -oi -t -ODeliveryMode=b -OErrorMode=m
get it to use "cat message |mail -s “Subject” user@domain.com

Hm … you should use a mailer that accepts mail with header lines. I
don’t remember the exact usage of qmail … but there should be a sendmail
emulator with it.

sendmail: usage: sendmail [ -t ] [ -fsender ] [ -Fname ] [ -bp ] [ -bs ] [
arg … ]
Could not send mail :frowning:

Yeah, exactly. Just set $mail_options to “” in
/path/to/your/rt/etc/config.pm … or wherever that file is.

Spell checkers are for wimps
(please send feedback on all typos)


#3

|> Is there a way that I can change how the script sends email.
|
|Yes, there should be … check for “sendmail” in config.pm.
|
|> Instead of using /usr/lib/sendmail -oi -t -ODeliveryMode=b -OErrorMode=m
|> get it to use "cat message |mail -s “Subject” user@domain.com
|
|Hm … you should use a mailer that accepts mail with header lines. I
|don’t remember the exact usage of qmail … but there should be a sendmail
|emulator with it.

we use the qmail sendmail emulator, and the lines in config.pm
are:

$mailprog = “/usr/lib/sendmail”;
$mail_options = “-oi -t”;

-deborah