Friends help you to get missing materials and perform some tasks much faster.
You can send a gift to a friend with clicking on a present box on your friend icon and then choose a gift in a gift menu.
The gift you have received is shown in your game mail.
To get a gift click on the envelope.
After receiving a friend's gift you can give him any gift in return in the same message.