i'm sure it's something simple but i just don't see it! i need a blank line in my email between the line that says "your userid is blah blah" and then the list of fields (@db_cols). but it's printing the first field on the same line as my userid. here's my code:
print MAIL "To: $rec{$db_email_field}\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: $my_subject\n\n";
unless ($record_notify_add == 1) {
print MAIL "$record_notify_add\n\n";
}
print MAIL "$my_message\n\n";
if ($auth_signup || $spec_signup ) { # added if... 2/21/2008
print MAIL "Your UserID is $rec{'Userid'}";
}
print MAIL "\n\n"; # HERE'S WHERE I WANT BLANK LINES
foreach $col (@db_cols) {
next if ($db_form_len{$col} < 0);
if ($rec{$col}) { print MAIL "$col -- $rec{$col}\n"; }
}
close (MAIL);
Code:
open (MAIL, "$mailprog") || &cgierr("Can't start mail program"); print MAIL "To: $rec{$db_email_field}\n";
print MAIL "From: $admin_email\n";
print MAIL "Subject: $my_subject\n\n";
unless ($record_notify_add == 1) {
print MAIL "$record_notify_add\n\n";
}
print MAIL "$my_message\n\n";
if ($auth_signup || $spec_signup ) { # added if... 2/21/2008
print MAIL "Your UserID is $rec{'Userid'}";
}
print MAIL "\n\n"; # HERE'S WHERE I WANT BLANK LINES
foreach $col (@db_cols) {
next if ($db_form_len{$col} < 0);
if ($rec{$col}) { print MAIL "$col -- $rec{$col}\n"; }
}
close (MAIL);