[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[cobalt-developers] Re: cobalt-developers digest, Vol 1 #91 - 5 msgs
- Subject: [cobalt-developers] Re: cobalt-developers digest, Vol 1 #91 - 5 msgs
- From: cLive hoLLoway <clive@xxxxxxxxxxxxxxxxxxx>
- Date: Fri Mar 17 16:14:44 2000
Hi,
having problems with Sendmail on a RAQ2 and wondered if anyone has any
thoughts...
Calling it from perl, it works fine unless the domain contains a hyphen.
Then we get the message "User not known"
I tried putting the addresses in quotes, then it seems to send the mail to:
"e-mail-address@domain"@default.host.address
Code tried:
sub send_email {
my ($to,$from,$subject,$message) = @_;
open(MAIL,"|$common::conf{'mail_prog'} -t") || die ('Cannot send e-mail.
Check path mail program is valid',1);
print MAIL "To: $to\n";
print MAIL "From: $from\n";
print MAIL "Subject: $subject\n\n";
print MAIL $message;
close (MAIL);
}
Then I changed these two lines:
print MAIL "To: \"$to\"\n";
print MAIL "From: \"$from\"\n";
Arggghhh. Any ideas?
cLive ;-)
pager: 0336 778419