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

Stefan Hornburg (Racke) racke at linuxia.de
Tue Nov 16 08:58:24 UTC 2010


On 11/15/2010 01:30 PM, Jan van Dijk wrote:
> 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
>
>   >>>  "Stefan Hornburg (Racke)"<racke at linuxia.de>  15-11-10 9:10>>>
>   >>On 11/14/2010 11:16 PM, Jan van Dijk wrote:
>   >>  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<mailto: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<mailto:foo at bar.com>>"
>   >>  subject="Email with attachments"
>   >>  attach.0="images/logo_infra.gif"
>   >>  ttach.1="images/getacro.gif"
>   >>  This email has two attachments.(works fine)[/email]
>   >>  [email
>   >>  to="foo<foo at bar.com<mailto: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]
>
>   >Did you make sure that both files exist? What is the error message in
>   >your log file(s)?
>   >Regards
>   >Racke
> With a form both files are uploaded to the server in the 'upload' directory.
> Directly after upload, the email is (should be) sent, but crashes.
> The error log says: Runtime error: upload/[cgi ui_upload_filename1]: not readable.
> If I replace:
> attach.0="upload/[cgi ui_upload_filename1]" with attach.0="upload/somefile.pdf" and
> attach.1="upload/[cgi ui_upload_filename2]" with
> attach.1="upload/anotherfile.xls" and it works fine.
> It seems that the [cgi] tag is not interpreted when using multiple attachments.
> Displaying the [cgi ui_upload_filename1] an [cgi ui_upload_filename2] shows the
> right filenames.
> Thanks
>

I suppose we better return 0 and leave an error in the session if one of the
files doesn't exist / isn't readable.

Regards
	Racke


-- 
LinuXia Systems => http://www.linuxia.de/
Expert Interchange Consulting and System Administration
ICDEVGROUP => http://www.icdevgroup.org/
Interchange Development Team




More information about the interchange-users mailing list