This isn't hard. Use
$(this) which in the context of your event handler will always refer to the element that recieved the click.
var email = $(this).data('email');
Also, don't write
$('.foo').attr('data-email'), use jQuery's data API instead: