Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Can't locate objet method "new" via package "Mail::SendMail"

by Perlbotics (Archbishop)
on Jul 26, 2013 at 19:15 UTC ( [id://1046592]=note: print w/replies, xml ) Need Help??


in reply to Can't locate objet method "new" via package "Mail::SendMail"

$obj = new Mail::SendMail();

Primary problem: Mail::Sendmail does not provide an OO interface.

Secondary problem: Indirect object notation.
Prefer $obj = SomeClass->new(...) over $obj = new SomeClass(...).

Update: Maybe you meant Mail::Send? It has a similar interface...

Update2: ... ah, seems that poj solved it in Re^3: Can't locate objet method "new" via package "Mail::SendMail" -- sometimes we forget, that not everything is uploaded to/downloaded from CPAN!

Replies are listed 'Best First'.
Re^2: Can't locate objet method "new" via package "Mail::SendMail"
by karger (Initiate) on Jul 26, 2013 at 19:29 UTC
    So i changed my use log line to say use Mail::Sendmail; I still seem to get the same error though on this line:
    $obj = new Mail::Sendmail();

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1046592]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (7)
As of 2024-04-19 09:57 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found