|
| A R C H I V E D M E S S A G E |
|
Subject: Undefined value at line 834 |
| Posted: 06/01/2004 at 3:56:39 pm |
| By: weberpdx |
| Seth, thank you for creating such a great form processor. I'm getting a rather unusual message when I run the form. I've checked all the settings, and I think I have everything set correctly. The page comes up this text: Can't call method "mail" on an undefined value at d:\html\users\jeffreypossingercom\html\usr\bin\perl\bizmail.cgi line 834. I checked with the hosting company and they said it was a coding issue. Any ideas? | |
|
|
Subject: Re: Undefined value at line 834 |
| Posted: 06/02/2004 at 6:42:11 am |
| By: Seth Knorr |
| It sounds like it could be a couple of things. One make sure you have the correct path to sendmail or SMTP.
2. Did you upload the MIME folder and Lite.pm, and set both to read, write and executable for all. This is ushually something your host will have to do.
3. is anything getting written to your data file?
4. Since you are on a Windows server, you may need to download the windows version of the script.
Seth | |
|
|
Subject: Re: Undefined value at line 834 |
| Posted: 06/02/2004 at 9:51:33 am |
| By: weberpdx |
| Seth, Thanks for the advice. I did all four and still received the same message. thanks anyway. | |
|
|
Subject: Re: Undefined value at line 834 |
| Posted: 06/02/2004 at 11:58:12 am |
| By: Seth Knorr |
| So you are saying then that data is getting written to your data file, Example: bizmail.dat?
Seth | |
|
|
Subject: Re: Undefined value at line 834 |
| Posted: 06/02/2004 at 1:12:59 pm |
| By: Seth Knorr |
| Ok try this go to Line 90 of smtp.cgi and you should see the follow line:
$smtp = Net::SMTP->new($smtp_server); # connect to an SMTP server #
REPLACE THAT LINE WITH THE BELOW LINE:
$smtp = Net::SMTP->new($smtp_server) or die "Unable to open the connection"; # connect to an SMTP server #
Then let me know what error you get.
Seth | |
|
|