"it doesn't work" is a little bit vague, when dealing with a system this complex. You've got the RPi hardware, the camera hardware, the OS, the motion-mmal program, and the email infrastructure. Any one of which could be improperly configured, or just broken.
I recommend that you separate the problem into parts. When you find which part is broken, then you can ask a more specific question and get a more specific answer.
1) Does the RPi work by itself?
2) Does the RPi work with the camera (eg. raspistill and raspivid) ?
3) Does motion-mmal work with the camera, just saving stills locally ? (
http://www.raspberrypi.org/phpBB3/viewt ... 43&t=44966 )
4) Can the RPi send email with attachments to whatever account you are using (spam filters, etc. could block it even if everything else is ok)