in reply to using Mail with Perl

It depends what you are using to send the mail. Look here for some modules, as well as Net::SMTP, and the MIME::* modules. Choose which you want to use and look at the examples in the docs.

Cheers,
KM