http://www.perlmonks.org?node_id=144133


in reply to How do I send e-mail from my Perl Program?

I use Mail::Sendmail, here is some code that use and reuse. Be usre to set your mail server in sendmail.pm tho, here is a snipped of code that will send HTML email.
use Mail::Sendmail; %mail = ( from => 'me@domain.com', to => 'you@domain.com', subject => 'Test HTML mail', 'content-type' => 'text/html; charset="iso-8859-1"', ); $mail{body} = <<END_OF_BODY; <html> <head> <style> body {font-family: Verdana; size: 10px; color:black;} </style> </head> <body> Here is the contents of your email, use html as you wish ...... have f +un! </body> </html> END_OF_BODY sendmail(%mail) || print "Error: $Mail::Sendmail::error\n";
  - Silent11