Perl: Send mail via SMTP

I have a existing perl program , in this program it will output a email address list to a variable ( $email_list ) , mail content to a variable ( $email_content ) , if I want to send all email to these email address with corresponding content , would aadivse how to write a perl script ?

thanks

You say you have an existing perl program that sends email. Does it work? What do you have so far?

thanks reply ,

I mean I have existing perl program tht output email address and content to the variable , it can not do send mail , what I need is add a function to send mail via SMTP .