Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^6: Using Net::SMTP to send email attachments

by astrobal (Acolyte)
on May 01, 2017 at 13:20 UTC ( [id://1189260]=note: print w/replies, xml ) Need Help??


in reply to Re^5: Using Net::SMTP to send email attachments
in thread Using Net::SMTP to send email attachments

The error message is this:

"Can't call method "datasend" on an undefined value at example2.cgi line 26, <> line 1."

and line 26, line 1 was "$smtp->datasend(<<"EOH");"

Thanks

Geoffrey

  • Comment on Re^6: Using Net::SMTP to send email attachments

Replies are listed 'Best First'.
Re^7: Using Net::SMTP to send email attachments
by shmem (Chancellor) on May 01, 2017 at 13:26 UTC
    "Can't call method "datasend" on an undefined value at example2.cgi line 26, <> line 1."

    So it is not EOH, but $smtp which is not defined. Did you notice the ellipsis (...) in my example? These are placeholders for something that's been omitted for brevity, and you should add the bits needed, namely the initialization of $smtp and the protocol, and any other code to make that work.

    perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2024-04-26 05:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found