Gossamer Forum
Quote Reply
Final touches
I finally have my script working...but there are still two things wrong and I can not find out the mistakes...

The first one is the following..my hosting company uses blat.exe and I set de db_smtp_path where they say...

Mailing started on Mon Apr 3 18:59:20 2000

CGI ERROR
==========================================
Error Message : Unable to init mailer! Reeason: SMTP: server 'c:\Winnt\System32\blat.exe' was not found.
Script Location : e:\XVRT\enlaces.defensa.com\Html\cgi-bin\admin\nph-email.pl
Perl Version : 5.00503

Form Variables
-------------------------------------------

Environment Variables
-------------------------------------------
COMPUTERNAME : IGAI
COMSPEC : C:\WINNT\system32\cmd.exe
CONTENT_LENGTH : 71
CONTENT_TYPE : application/x-www-form-urlencoded
GATEWAY_INTERFACE : CGI/1.1
HTTPS : off
HTTP_ACCEPT : image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword, */*
HTTP_ACCEPT_ENCODING: gzip, deflate
HTTP_ACCEPT_LANGUAGE: es
HTTP_CONNECTION : Keep-Alive
HTTP_CONTENT_LENGTH : 71
HTTP_CONTENT_TYPE : application/x-www-form-urlencoded
HTTP_HOST : enlaces.defensa.com
HTTP_REFERER : http://enlaces.defensa.com/cgi-bin/admin/admin.pl?db=links&html_mail_form=1&all=1
HTTP_USER_AGENT : Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
INCLUDE : C:\Archivos de programa\Mts\Include
INSTANCE_ID : 301
LIB : C:\Archivos de programa\Mts\Lib
LOCAL_ADDR : 195.55.179.117
NUMBER_OF_PROCESSORS: 2
OS : Windows_NT
OS2LIBPATH : C:\WINNT\system32\os2\dll;
PATH : C:\Perl\bin;C:\WINNT\system32;C:\WINNT;C:\Archivos de programa\Mts;C:\Archivos de programa\Symantec\pcAnywhere
PATH_INFO : /cgi-bin/admin/nph-email.pl
PATH_TRANSLATED : e:\XVRT\enlaces.defensa.com\Html\cgi-bin\admin\nph-email.pl
............

and the second one is the verifying option... These are the errors..

Verifying Links
Link checking started at: Mon Apr 3 18:58:34 2000
--------------------------------------------------------
Registering URLs ...

Done.

Links to check '5' using GET method. Please be patient...

Checked 3 - Request Failed (500). Message: Can't locate object method "_new_socket" via package "LWP::Parallel::Protocol::http".
Checked 4 - Request Failed (500). Message: Can't locate object method "_new_socket" via package "LWP::Parallel::Protocol::http".
Checked 5 - Request Failed (500). Message: Can't locate object method "_new_socket" via package "LWP::Parallel::Protocol::http".
Checked 7 - Request Failed (500). Message: Can't locate object method "_new_socket" via package "LWP::Parallel::Protocol::http".
Checked 8 - Request Failed (500). Message: Can't locate object method "_new_socket" via package "LWP::Parallel::Protocol::http".

Took: 0 seconds to check 5 links.

Bad Link Summary
-----------------------------------------------
7 - http://www.el-mundo.es/ [modify|delete] : 500 - Can't locate object method "_new_socket" via package "LWP::Parallel::Protocol::http".
8 - http://www.casaweb.com/paus/foro/index.html [modify|delete] : 500 - Can't locate object method "_new_socket" via package "LWP::Parallel::Protocol::http".
3 - http://www.defensa.net/ [modify|delete] : 500 - Can't locate object method "_new_socket" via package "LWP::Parallel::Protocol::http".
5 - http://www.elpais.es/ [modify|delete] : 500 - Can't locate object method "_new_socket" via package "LWP::Parallel::Protocol::http".
4 - http://www.abc.es/ [modify|delete] : 500 - Can't locate object method "_new_socket" via package "LWP::Parallel::Protocol::http".

-----------------------------------------------

Good Links: 0
Bad Links : 5


Thank you


Quote Reply
Re: Final touches In reply to
Here are some possible solutions:

1) Use the correct case setting for the drive letter. It should be C:/ rather than c:/. Also, you should use the following codes in the $db_mail_path:

Code:
$db_mail_path = 'C:/Winnt/System32/blat.exe';

2) You need to compile the LWP module in your lib directory where your Perl package is located.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: Final touches In reply to
1) I followed your advice and changing the c:\ it looks good..

Links Manager: Mailing Users
Mailing Users
Mailing started on Thu Apr 6 22:05:46 2000

Mailing Message:
--------------------------------------------------------
From: enlaces@defensa.com
Subject: f

fff
--------------------------------------------------------
7 - Message sent succesfully to 'fmunozm@teleline.es'
--------------------------------------------------------
Mailing finished at: Thu Apr 6 22:05:46 2000.
Elapsed: 0 s.

BUT and this is a big BUT nothing is received :-(

My server F.A.Q. says that we have access to Blat and in order to use it I will need to make a system call in the form:

blat filetosend.doc -t towhom@where.com -f fromwhom@where.com -c
cctoanyone@where.com

Where would I place this line in the script and how would I configure the mailer or wherever ...portion of the script?

Thanks in advance for your help.

2) About LWP, when you say that I need to compile the LWP module in my lib directory where my Perl package is located....are you talking of my hosting company? They tell me that LWP is installed..should THEY do anything else?

Thank you again...



Quote Reply
Re: Final touches In reply to
1) This is a command line that you execute via MSDOS or FTP when you access your account.

2) Yes...it has to be compiled by your hosting company. And you also have to upload the LWP modules that come with LINKS in your $db_lib_path directory specified in the links.cfg file.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: Final touches In reply to
1.- I think that my SMTP server denies relaying because it probably does not have my web server on its list of allowed relay machines, but my hosting company says that the script is incorrect...do you know any test I can do to check if the script is working OK or I must give up and change my company' :-)

2. About LWP..In the links.cfg file I have $db_lib_path = $db_script_path; # PATH of library files.

$db_script_path is E:\\xvrt\\enlaces.defensa.com\\html\\cgi-bin\\admin

and there I have the LWP directory with the *.pm files...

but the LIB directory of my server is C:\\Archivos de Programa\\Mts\\Lib

and the Perl directory is C:\\Perl\\bin

Do I have to change my links.cfg file? How?

And where do I have to upload the Lib modules?... to the Perl, to the lib or to the admin directory?

Thanks

Quote Reply
Re: Final touches In reply to
You need to change the following:

Code:
E:\\xvrt\\enlaces.defensa.com\\html\\cgi-bin\\admin

to the following:

Code:
E:/xvrt/enlaces.defensa.com/html/cgi-bin/admin

Same thing with any directory path you have.

All the Perl Modules can be found at:

www.cpan.org

But if you install the current of Perl for Win32 from ActiveState, you should be fine.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
* Thinking out of the box (codes) is not only fun, but effective.
Quote Reply
Re: [Stealth] Final touches In reply to
Sly Hi; the solution can also be by precising the ip address of the SMTP server.

I had the same pb and when I put the IP address in the SMTP server parameter, it worked, mainly that I have Links working on a machine and the mail server working on another machine.

Sly
Quote Reply
Re: [Hafid] Final touches In reply to
This thread is 2 1/2 years old you know Wink
Quote Reply
Re: [Paul] Final touches In reply to
TongueHi,

I know the post is old but it is always interesant to have a written solution to any pb; I suggested another solution that I didn't find in another posts about the same pb.

Tongue