applescript: create system profile and email

I need applescirpts that can export the system profile and email it. I would like to ask anyone out there to let me know if you have ideas for this kind of tasks.
Any comments? Ideas? Suggestions?
Thank you.