email extention

How to use email within a module.Has anyone any idea about this?