hogtied
02-27-2003, 01:05 AM
Hello,
I have this perl script so far:
#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
$formData = $ENV{'QUERY_STRING'};
@data = split(/&/, $formData);
foreach $data (@data) {
($name, $value) = split(/=/, $data);
$email{$name} = $value;
}
open(MAIL, "|/usr/bin/sendmail -t");
print MAIL "To: $email{to}\n";
print MAIL "From: $email{from}\n";
print MAIL "Subject: Feedback from\n\n";
close (MAIL);
this alone works fine. What I want to do is to be able to send pictures. The only way I know (and correct me if I'm wrong) is that this can only be done using HTML not Plain Text.
My question is how do you send an HTML email with pictures in it.??
Thanks,
Hogtied
I have this perl script so far:
#!/usr/local/bin/perl
print "Content-type: text/html\n\n";
$formData = $ENV{'QUERY_STRING'};
@data = split(/&/, $formData);
foreach $data (@data) {
($name, $value) = split(/=/, $data);
$email{$name} = $value;
}
open(MAIL, "|/usr/bin/sendmail -t");
print MAIL "To: $email{to}\n";
print MAIL "From: $email{from}\n";
print MAIL "Subject: Feedback from\n\n";
close (MAIL);
this alone works fine. What I want to do is to be able to send pictures. The only way I know (and correct me if I'm wrong) is that this can only be done using HTML not Plain Text.
My question is how do you send an HTML email with pictures in it.??
Thanks,
Hogtied