in reply to Re^6: Error in MIME::Lite?
in thread Error in MIME::Lite?

Because its written that way?

build returns an object of some kind ... if you dont specify data in constructor, you have to specify it later ...

Notice also data1 is disappeared :)