Email from command line not working

Gitlab email is working from user console. however when i am trying to run mail -s from command line i am not receiving any email, is there any specific command i need to use to trigger email from pipeline?