-§SUBJECT§
+<SUBJECT>
Your biblio basket
-§END_SUBJECT§
+<END_SUBJECT>
-§HEADER§
+<HEADER>
Hi,
Here is your biblio basket...
-§END_HEADER§
+<END_HEADER>
-§FILENAME§
+<FILENAME>
basket.txt
-§END_FILENAME§
+<END_FILENAME>
-§MESSAGE§
+<MESSAGE>
---------------------------------------------
<!-- TMPL_LOOP NAME="BIBLIO_RESULTS" --><!-- TMPL_VAR NAME="title" -->(record <!-- TMPL_VAR NAME="biblionumber" -->)<!-- TMPL_IF name="isbn" -->
ISBN: <!-- TMPL_VAR NAME="ISBN" --><!-- /TMPL_IF --><!-- TMPL_IF name="subtitle" -->
URL : <!-- TMPL_VAR NAME="url" --><!-- /TMPL_IF -->
---------------------------------------------
<!-- /TMPL_LOOP -->
-§END_MESSAGE§
+<END_MESSAGE>
my $template_res = $template2->output();
# Analysing information and getting mail properties
- if ($template_res =~ /§SUBJECT§\n(.*)\n§END_SUBJECT§/s) { $mail{'subject'} = $1; }
+ if ($template_res =~ /<SUBJECT>\n(.*)\n<END_SUBJECT>/s) { $mail{'subject'} = $1; }
else { $mail{'subject'} = "no subject"; }
my $email_header = "";
- if ($template_res =~ /§HEADER§\n(.*)\n§END_HEADER§/s) { $email_header = $1; }
+ if ($template_res =~ /<HEADER>\n(.*)\n<END_HEADER>/s) { $email_header = $1; }
my $email_file = "basket.txt";
- if ($template_res =~ /§FILENAME§\n(.*)\n§END_FILENAME§/s) { $email_file = $1; }
+ if ($template_res =~ /<FILENAME>\n(.*)\n<END_FILENAME>/s) { $email_file = $1; }
- if ($template_res =~ /§MESSAGE§\n(.*)\n§END_MESSAGE§/s) { $mail{'body'} = $1; }
+ if ($template_res =~ /<MESSAGE>\n(.*)\n<END_MESSAGE>/s) { $mail{'body'} = $1; }
my $boundary = "====" . time() . "====";
$mail{'content-type'} = "multipart/mixed; boundary=\"$boundary\"";