open(MAIL, "|$sendmail -t") or die "Cannot open sendmail: $sendmail: $!"; print MAIL 'From: no@reply.com\n'; print MAIL "To: $email\n"; print MAIL "Subject: $subject\n\n"; print MAIL "confirmation"; close(MAIL);