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


in reply to Trying to send a nicely formatted email -> GMail

my $email = Email::MIME->create( header_str => [ From => [ "cdatwitter\@grumble.edu" ], To => [ "gbecker\@grumble.edu" ], Subject => [ "Yes this is for Twitter" ], ], parts => [ @parts ], );

You are using arrayrefs for everything - that isn't how the synopsis shows you to use the header_str field. Try:

my $email = Email::MIME->create( header_str => [ From => 'cdatwitter@grumble.edu', To => 'gbecker@grumble.edu', Subject => 'Yes this is for Twitter', ], parts => [ @parts ], );