You haven't told us whether a file actually exists at the location that $Form{attachment} outputs. The -f test checks for that. As T: sounds like a (remote) network drive, it could also be that the webserver user (and thus, likely the Windmail user) don't have access to that network resource. A second test from within Perl could confirm that, as could obtaining the Windmail logs.
Of course, you can still simply copy MIME::Lite into your script, no matter how much reluctance you show.
In reply to Re^7: How do I get Windmail to send an email attachment
by Corion
in thread How do I get Windmail to send an email attachment
by kjg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |