I didn't really get a look to this part, only the possbility to send a mail when all is getting wrong, something like :
Hey sucker, your f$^ù script don't work at all unless the sendmail for this user : ... Now go and correct this and don't ever mind to sleep this night.

But you should get a look to the link kdyer provide, the attachment part is at the end (in VB, but easy to transcribe).

_________________________
? getobject(Kixtart.org.Signature)