how do i setup my mail settings to enable activation emails to be sent

I have setup the membership plugin to allow users to register to the website. But once they register if they logout and log back in the error message “Sorry, this account is not active.” is being displayed. I believe this because the activation email is not sent. How do i fix this?