<HTML><HEAD>
<META content="text/html; charset=iso-8859-15" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18928"></HEAD>
<BODY style="MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
<DIV><BR>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT size=2 face=Arial>Met vriendelijke groet,<BR><BR>Jan van Dijk<BR>j.vandijk@attema.nl<BR>B.V. Kunststoffenindustrie Attema<BR>tel : 0183-650650 tst 674<BR>fax: 0183-650751<BR>www.attema.nl</FONT><BR>&gt;&gt;&gt;&gt; Mike Heins &lt;mike@perusion.com&gt; 15-11-10 14:51 &gt;&gt;&gt;<BR>&gt;Quoting Mike Heins (mike@perusion.com):<BR>&gt;&gt; Quoting Jan van Dijk (j.vandijk@attema.nl):<BR>&gt;&gt; &gt; Dear all,<BR>&gt;&gt; &gt;&nbsp; <BR>&gt;&gt; &gt; Adding a single attachment using the cgi tag works fine, adding multiple attachments using fixed filenames works fine also, <BR>&gt;&gt; &gt; but adding multiple attachments using the cgi tag results in a Runtime error: upload/[cgi ui_upload_filename1]: not readable.<BR>&gt;&gt; &gt;&nbsp; <BR>&gt;&gt; &gt; [email <BR>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; to=|foo@bar.com|<BR>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; subject=|Email with attachment|<BR>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; attach="upload/[cgi ui_upload_filename]"<BR>&gt;&gt; &gt; ]This email has an attachment.(works fine)[/email]<BR>&gt;&gt; &gt;&nbsp; <BR>&gt;&gt; &gt; [email<BR>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; to="foo &lt;foo@bar.com&gt;"<BR>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; subject="Email with attachments"<BR>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; attach.0="images/logo_infra.gif"<BR>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; attach.1="images/getacro.gif"<BR>&gt;&gt; &gt; ]This email has two attachments.(works fine)[/email]<BR>&gt;&gt; &gt;&nbsp; <BR>&gt;&gt; &gt; [email<BR>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; to="foo &lt;foo@bar.com&gt;"<BR>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; subject="Email with attachments"<BR>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; attach.0="upload/[cgi ui_upload_filename1]"<BR>&gt;&gt; &gt;&nbsp;&nbsp;&nbsp;&nbsp; attach.1="upload/[cgi ui_upload_filename2]"<BR>&gt;&gt; &gt; ]This email has two attachments.(crashes)[/email]<BR>&gt;&gt; &gt;&nbsp; <BR>&gt;&gt; <BR>&gt;&gt; As documented, you cannot include IC tags in hash members. This may have<BR>&gt;&gt; changed in 5.7, but was true before then.<BR>&gt;&gt; <BR>&gt;&gt; Quick fix is:<BR>&gt;&gt; <BR>&gt;&gt;&nbsp;&nbsp;&nbsp;&nbsp; attach=` ["upload/$CGI-&gt;{ui_upload_filename1}","upload/$CGI-&gt;{ui_upload_filename2}"] `<BR>&gt;<BR>&gt;And you can try with the previous code:<BR>&gt;<BR>&gt;[pragma interpolate_itl_references]<BR>&gt;<BR>&gt;anywhere in the page.<BR>&gt;<BR>[pragma interpolate_itl_references] in combination with</DIV>
<DIV>[email<BR>&nbsp;&nbsp;&nbsp;&nbsp; to="foo &lt;foo@bar.com&gt;"<BR>&nbsp;&nbsp;&nbsp;&nbsp; subject="Email with attachments"<BR>&nbsp;&nbsp;&nbsp;&nbsp; attach.0="upload/[cgi ui_upload_filename1]"<BR>&nbsp;&nbsp;&nbsp;&nbsp; attach.1="upload/[cgi ui_upload_filename2]"<BR>]This email has two attachments.(crashes)[/email] </DIV>
<DIV>works fine now ! Thanks !</DIV><BR>

    <p>
      <font face="Dialog">Disclaimer.
</font>    </p>
    <p>
      <font face="Dialog">The information contained in this communication is 
      confidential and may be legally privileged. It is intended solely for 
      the use of the individual or entity to whom it is addressed and others 
      authorised to receive it. If you are not an intended recipient, please 
      notify the sender immediately by e-mail. Attema does not accept 
      liability for any errors, omissions, delays or receipt of viruses in the 
      contents of this message that may arise as a result of this email 
      transmission.
</font>    </p>
    <p>
      <a href="http://www.attema.nl/attema/images/attema_disclaimer.gif"><img alt="attema_disclaimer.gif" border="0" src="cid:YCUEYGMFSYIG.attema_disclaimer.gif">
</a>    </p>
  </BODY></HTML>