That's the exact script I used (changed the e-mail addies and attachment name). I don't see how to add a sender address. Disabling the security warning also needs to be done but that might be something that can be done by a GPO setting or something.
_________________________
Mart

- Chuck Norris once sold ebay to ebay on ebay.