It would be better to ask her yourself, but I don't think it's wrong to get it from a friend. E-mail is sort of a free for all anyway, as opposed to her phone number. Plus you can say that you felt too shy to ask her yourself or whatever, which some girls quite like.