[ic] Betr.: Re: Email tag crash while sending two attachments

Jan van Dijk j.vandijk at attema.nl
Mon Nov 15 14:50:59 UTC 2010


 
 
Met vriendelijke groet,

Jan van Dijk
j.vandijk at attema.nl
B.V. Kunststoffenindustrie Attema
tel : 0183-650650 tst 674
fax: 0183-650751
www.attema.nl
>>>> Mike Heins <mike at perusion.com> 15-11-10 14:51 >>>
>Quoting Mike Heins (mike at perusion.com):
>> Quoting Jan van Dijk (j.vandijk at attema.nl):
>> > Dear all,
>> >  
>> > Adding a single attachment using the cgi tag works fine, adding multiple attachments using fixed filenames works fine also, 
>> > but adding multiple attachments using the cgi tag results in a Runtime error: upload/[cgi ui_upload_filename1]: not readable.
>> >  
>> > [email 
>> >     to=|foo at bar.com|
>> >     subject=|Email with attachment|
>> >     attach="upload/[cgi ui_upload_filename]"
>> > ]This email has an attachment.(works fine)[/email]
>> >  
>> > [email
>> >     to="foo <foo at bar.com>"
>> >     subject="Email with attachments"
>> >     attach.0="images/logo_infra.gif"
>> >     attach.1="images/getacro.gif"
>> > ]This email has two attachments.(works fine)[/email]
>> >  
>> > [email
>> >     to="foo <foo at bar.com>"
>> >     subject="Email with attachments"
>> >     attach.0="upload/[cgi ui_upload_filename1]"
>> >     attach.1="upload/[cgi ui_upload_filename2]"
>> > ]This email has two attachments.(crashes)[/email]
>> >  
>> 
>> As documented, you cannot include IC tags in hash members. This may have
>> changed in 5.7, but was true before then.
>> 
>> Quick fix is:
>> 
>>     attach=` ["upload/$CGI->{ui_upload_filename1}","upload/$CGI->{ui_upload_filename2}"] `
>
>And you can try with the previous code:
>
>[pragma interpolate_itl_references]
>
>anywhere in the page.
>
[pragma interpolate_itl_references] in combination with
[email
     to="foo <foo at bar.com>"
     subject="Email with attachments"
     attach.0="upload/[cgi ui_upload_filename1]"
     attach.1="upload/[cgi ui_upload_filename2]"
]This email has two attachments.(crashes)[/email] 
works fine now ! Thanks !

Disclaimer

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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.icdevgroup.org/pipermail/interchange-users/attachments/20101115/88aa27dc/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/gif
Size: 2014 bytes
Desc: CompuServe GIF graphic
URL: <http://www.icdevgroup.org/pipermail/interchange-users/attachments/20101115/88aa27dc/attachment.gif>


More information about the interchange-users mailing list