[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Sendmail question



-----Original Message-----
From: cobalt-users-admin@xxxxxxxxxxxxxxx
[mailto:cobalt-users-admin@xxxxxxxxxxxxxxx]On Behalf Of Brian M. Rahill
Sent: Thursday, December 07, 2000 6:19 PM
To: cobalt-users@xxxxxxxxxxxxxxx
Subject: [cobalt-users] Sendmail question


Whenever I have a form submitted from my server I get the following message
in the header:

X-Authentication-Warning: www.myserverdomain.com: nobody set sender to <the
email address> using -f

------REPLY-------

I assume you are submitting the form via a cgi script.
This is how I open and use sendmail in my script and seems to work fine.

open (SENDMAIL, "|/usr/lib/sendmail -oi -t") || die "Can't Send Info: $!\n";
print SENDMAIL <<EndMail;
From: user\@yourdomain.com			 #some servers you are sending to require a
valid address
To: recipient\@theirdomain.com		 #must be valid address
Subject: Whatever you want

blah, blah, blah

EndMail

close (SENDMAIL) || warn "Message did not get sent properly";


This works equally well on both RaQ2 & RaQ3 servers

cheers, Dave