$mailprogram="/usr/lib/sendmail"; $sendto="$input{xemailx}"; $from="$input{xmailx}"; $subject="$input{xsubjext}"; open(MAIL, "|$mailprogram -t -oi") || die "Can't open mail program: $!\n"; print MAIL "To: $sendto\n"; print MAIL "From: $from\n"; print MAIL "Subject: $subject\n\n"; print MAIL <