Forum Moderators: coopster & phranque

Message Too Old, No Replies

How to "print SENDMAIL" to write from @array

PERL checkboxes via enail...

         

cafetom

5:37 pm on Jul 24, 2003 (gmt 0)



I have coded a PERL script to send email to a sales rep. with customer catalog order and US Mailing information.
The customer selects to receive any of several catalogs
at current online order form.

Based on the customer's inputted zip code, a specific sales rep. will get this personal and catlog order information via email message.

I having problems getting "print SENDMAIL" to write all catalog selections from @CATALOG array.

This script is written in Perl.

Can anyone offer assistance?

Thanks!

Here is just the SENDMAIL code...
####################################################
# Send email to customer to confirm Catalog Order #
####################################################
open(SENDMAIL, "¦$sendmailpath") or die "Cannot open $sendmail: $!"
print SENDMAIL "From: $email1\n";
print SENDMAIL "To: $recipient\n";
print SENDMAIL "BCC: $cc\n";
print SENDMAIL "Subject: $subject\n\n";
print SENDMAIL "Thanks, $name for your order!\n\n";
print SENDMAIL "You have ordered:\n";
print SENDMAIL "<ul>";
foreach $CATALOG (@CATALOG) { print SENDMAIL "<li>$CATALOG \n"; }
print SENDMAIL "</ul>";
print SENDMAIL "\n\n";
print SENDMAIL "In Christ,\n\n";
print SENDMAIL "-Harvest Group MA ";
close (SENDMAIL);
Tom Fitzsimmons

[edited by: cafetom at 6:03 pm (utc) on July 24, 2003]

wruk999

5:53 pm on Jul 24, 2003 (gmt 0)

10+ Year Member



Hi cafetom,

Welcome to WebmasterWorld [webmasterworld.com].. Please read Marcia's guide to the basics

wruk999

[edited by: jatar_k at 8:26 pm (utc) on July 24, 2003]
[edit reason] see sticky [/edit]