send a email with from like this "mysitename <webmaster@mysite.com>"

hi,

i am using rails to send emails, i want to each email's 'from' address
has a name of mysite, e.g. "mysitename <webmaster@mysite.com>", but it
doesn't work when set from value like this, in gmail mailbox only
webmaster@mysite.com can be display, anyone know how to do this?

thanks a lot.