"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.
In reply to Re^7: Using Net::SMTP to send email attachments
by shmem
in thread Using Net::SMTP to send email attachments
by astrobal
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |