I have read about Email::Stuff and came across some of the example on the net. All the examples then haven't created the object. They straight go away like this:
Email::Stuff->to('Simon Cozens<[email protected]>')
->from('[email protected]')
->text_body("You've been a good boy this year. No coal for you.")
->attach_file('choochoo.gif')
->send;
When I follow the above method I get the error Can't locate object method "to" via package "Email::Stuff" (perhaps you forgot to load "Email::Stuff"?) at ./test.pl line 27.
Can anyone give examples how to use Email::Stuff?