The second version is completely incorrect. The first is OK but rather informal. If you want to say something on parting, you can say "It is a pleasure to have met you" or more informally, "It was nice meeting you" , "It has been nice meeting you". A lot depends on the context - is this an informal meeting or an interview for a job for example?