This uses the Sambar Mailit.exe..... It's called from a form and there is more to it...
This is just the sndmail block...
############ START OF SENDMAIL BLOCK ############
$tempfile="temp.msg";
open(MAIL,">$tempfile");
print MAIL "Thank You For Joining $home \n";
print MAIL "Your verification Password is $pass1\n";
print MAIL "To verify your email address and or change your password\n";
print MAIL "you will need to goto this link\n";
print MAIL "$pageURL\n";
close(MAIL);
##########
$subject = "Password Varification";

      $commandline = "$MailProg";
 $commandline .= " \"$server\"";
 $commandline .= " \"$webmaster\"";
 $commandline .= " \"$Auth\"";
 $commandline .= " \"$email\"";
 $commandline .= " \"$subject\"";
 $commandline .= " \"$tempfile\"";

#
# EXECUTE THE MAILIT COMMAND
#

 system($commandline);
       $result = $?;

        # Test the result...
        if ($result != 0)
        {
$msg1 ="MailIt Failed [$result]";
&Error;
        }

if ($tempfile) {
unlink($tempfile);
}
############ END OF SENDMAIL BLOCK ############

Billy wrote:

sure...use Mail::Sendmail;

%mail = ( To => '[EMAIL PROTECTED]',

From => '[EMAIL PROTECTED]',

Subject =>'subject',

Message => "This is a very short message"

);

sendmail(%mail) or die $Mail::Sendmail::error;

I believe I have it right... You have to modify (I think) the sendmail.pm to your email server...
 
 

billy
 
 

----- Original Message -----
Sent: Monday, May 20, 2002 10:06 AM
Subject: [sambar] cgi email {01}
 
Has any one developed a cgi form that will send email? 

I�ve done it with Apache on UNIX using sendmail. 

But the whole windows environment has me at a loss.

If you�ve done this can you send me an example of your cgi?

Thanks!

Dell Case

-------------------------------------------------------
To unsubscribe please go to http://www.sambar.ch/list/



-------------------------------------------------------
To unsubscribe please go to http://www.sambar.ch/list/



-------------------------------------------------------
To unsubscribe please go to http://www.sambar.ch/list/



Reply via email to