IIS is used to host ASP.NET apps. You should release your application along with all required packages/libraries (including Mail.dll) into appropriate IIS folder structure.
There is no need to install Mail.dll on IIS separately.
Please note that your ASP.NET application must have enough permissions to create a network connection to email server (using IMAP, POP3 or SMTP protocols).