Paul
02-13-1999, 05:50 PM
Hi there...
I am testing out a cgi script and using sendmail...
Here is a snippet of the code:
-------------------------------------------------------------------------------------------------------------------
sub sendemail {
$TO=$_[0]; @TO=split('\0',$TO);
$SUBJECT=$_[1];
$REPLYTO=$_[2];
$REMOTE = $_[3];
$THEMESSAGE = $_[4];
open(S, "|$REMOTE -t");
print S "To: $TO[0]\n";
print S "From: <SMTPMAIL>\n";
print S "Subject: $SUBJECT\n";
print S "Reply-To: $REPLYTO\n\n";
# Print the body
print S "$THEMESSAGE\n";
print S "\n";
print S ".\n";
close (S);
}
-------------------------------------------------------------------------------------------------------------------
When I tested it out... here is the header from the email I got and wondered if someone could tell me how I would get it to reflect my email in the from and reply to
fields:
Subject:
Password
Date:
13 Feb 1999 18:15:24 -0000
From:
<SMTPMAIL@futurequest.net>
Reply-To:
nobody@futurequest.net
To:
paul@pumpkindriver.com
Any help would be greatly appreciated.
I am testing out a cgi script and using sendmail...
Here is a snippet of the code:
-------------------------------------------------------------------------------------------------------------------
sub sendemail {
$TO=$_[0]; @TO=split('\0',$TO);
$SUBJECT=$_[1];
$REPLYTO=$_[2];
$REMOTE = $_[3];
$THEMESSAGE = $_[4];
open(S, "|$REMOTE -t");
print S "To: $TO[0]\n";
print S "From: <SMTPMAIL>\n";
print S "Subject: $SUBJECT\n";
print S "Reply-To: $REPLYTO\n\n";
# Print the body
print S "$THEMESSAGE\n";
print S "\n";
print S ".\n";
close (S);
}
-------------------------------------------------------------------------------------------------------------------
When I tested it out... here is the header from the email I got and wondered if someone could tell me how I would get it to reflect my email in the from and reply to
fields:
Subject:
Password
Date:
13 Feb 1999 18:15:24 -0000
From:
<SMTPMAIL@futurequest.net>
Reply-To:
nobody@futurequest.net
To:
paul@pumpkindriver.com
Any help would be greatly appreciated.