What are examples how to use Email::Stuff?
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<simon@somewhere.jp>')
->from('Santa@northpole.org')
->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::St开发者_JAVA百科uff"?) at ./test.pl line 27.
Can anyone give examples how to use Email::Stuff?
As with all Perl modules, you have to use
them.
use Email::Stuff;
精彩评论