use strict; use warnings; use Mail::Sendmail; my $xml = qq# user diamondsandperls 2013-04-30 16:51:07 187 972306 74 #; my %mail = ( 'To' => 'bill@microsoft.com', 'From' => 'diamondsandperls@perlmonks.org', 'Subject' => 'Some XML', 'Content-Type' => 'application/xml', 'Message' => $xml ); sendmail (%mail) or die $Mail::Sendmail::error; exit;