> Sorry, wrong part of the code that caused the problem (guess I ought to
> look a little closer before running off). This is where it came from:
> Email_Send: -Host='mail.xx.com',
> -To='[hidden email]',
> -From='[hidden email]',
> -Body=(encode_breakonly: $vBody,
> There is no error trap on the attachments statement. I guess when there
> is no file with an Email_Send Lasso grabs the index file??
email_send does an [include_raw] for the name of the file to attached. If you pass it a blank name, in effect you'd be doing [include_raw:''], which should return an error.
In any event, you should always validate user input. There isn't anything stopping your users from having your system mail them your site code.