karthi_ms
karthi_ms

Reputation: 5698

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<[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?

Upvotes: 0

Views: 559

Answers (1)

Quentin
Quentin

Reputation: 943996

As with all Perl modules, you have to use them.

use Email::Stuff;

Upvotes: 3

Related Questions