[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [raq4] using Sendmail and Perl
- Subject: Re: [cobalt-users] [raq4] using Sendmail and Perl
- From: Jeff Lovell <jlovell@xxxxxxx>
- Date: Thu Oct 11 07:50:40 2001
- List-id: Mailing list for users to share thoughts on Cobalt products. <cobalt-users.list.cobalt.com>
untested... you might want to try some perl lists or newsgroups.
sub send_email_confirmation() {
return if ( ! /^[\w.-]+\@(?:[\w-]+\.)+\w+$/ );
open (MAIL,"|/usr/lib/sendmail -t")
|| &error("Can't open sendmail...\n");
print MAIL "To: $email\n";
print MAIL "Bcc: zzzz\@zzz.com,rustyw007\@yahoo.com\n";
print MAIL "From: zzz Corporation\n";
print MAIL "Subject: Auto-Reply from zzz Corporation\n\n";
print MAIL "This message is designed to let you know that the form\n";
print MAIL "you completed at zzz.com has been successfully\n";
print MAIL "submitted. If you requested information, it will be\n";
print MAIL "delivered to you soon.\n\n";
}
--
Jeff Lovell
Sun Microsystems Inc.