I had this earlier this morning - this means the Net::SMTP object wasn't
created.

In my code, I redirected STDERR and created the object using Debug=1 to get
more information.

    open (STDERR, ">>/logs/mail_log");
    $msHandle = Net::SMTP->new ('localhost',
                                   Hello => '64.70.149.84',
                                   Timeout => 10,
                                   Debug => 1);
    ...

Then you can check out the log to see what's going on.  More than likely,
the server you're trying to use is denying your request.  To keep your code
from 'dying', surround the rest of your code with an if clause:

    if ($msHandle) {
        # do the rest of the processing
    }

Jason

----- Original Message -----
From: "Helen Dickey" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, July 25, 2001 4:14 PM
Subject: re: e-mailing HTML form results


> Now I am getting the error message
> Can't call method "recipient" on an undefined value at feedback1SMTP.pl
> line 77.
> Does this mean that my address as recipient is wrong?
> Helen
>
>
> --
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to