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'