943,719 Members | Top Members by Rank

Ad:
Nov 2nd, 2003
0

cgi - pearl scripting

Expand Post »
I have a pearl script that will not allow the windows 2000 server I am on to post my order form...can someone tell me what coding I need for the stmp for windows - see attached file:

Any suggestions?

####
print STDOUT end_html, "\n";


exit(0);

#----------------------------------------------------------------------

sub sendMailMessage {
my $email_to = shift;
my $subject = shift;
my $order = shift;

use Net:MTP;
my $smtp = Net:MTP->new('mail.huntel.net') or return 0;
my $user = $ENV{USER};
$smtp->mail($user) or return 0;
$smtp->to($email_to) or return 0;

$smtp->data() or return 0;
$smtp->datasend("To: $email_to\n") or return 0;
$smtp->datasend("\n") or return 0;
$smtp->datasend($order) or return 0;
$smtp->dataend() or return 0;

return 1;
}
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
Christine is offline Offline
3 posts
since Nov 2003

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Windows NT / 2000 / XP Forum Timeline: strange annoying errors
Next Thread in Windows NT / 2000 / XP Forum Timeline: Saving Address book and Messages in Outlook Express





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC