Gossamer Forum
Home : Products : Links 2.0 : Customization :

problems with recommend it mode

Quote Reply
problems with recommend it mode
i been using it for about a year now and i thought it's working fine when both the sender and reciver domain name ends with com, net, org but does not work with international domain. for example i tried to send an e-mail to justTesting@wanadoo.es and i got this error:
MAIL NOT SENT. SMTP ERROR: -6
anyone is having the same problem?
is it my fault? is it my isp fault?
or did bobsie forgot to define international domain names?
Quote Reply
Re: problems with recommend it mode In reply to
Try using the sendlink Mod, which I wrote for templates...And it uses the embedded sendmail routine located in other Gossamer Threads scripts.

www.anthrotech.com/cgi/links/mods/sendlink/

If you are not having problems with sending mail to these types of domains via LINKS, then you won't have a problem using the above script.

The script I wrote does have a few drawbacks in terms that you can only specify one recipient at a time...but I have found through my maillogs that most people (around eighty-five percent) send messages to one person, ten percent send to multiple people with a message, and five percent send to people with no message.

Anyway...may be this script will work for ya.

Hope this helps.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited March 10, 2000).]
Quote Reply
Re: problems with recommend it mode In reply to
I have just installed the send it mod and I am encountering a problem. When I click on the 'recommend it' link it tells me the page cannot be displayed even though the link is pointing to the mod cgi script. I am quite sure that I have followed the directions well. Any suggestions? Thanks...!
Quote Reply
Re: problems with recommend it mode In reply to
Yea...As I mentioned in another Topic, you need to edit the FORM CODES in the sendlink_form.html file to the following:

Code:
<FORM ACTION="<%db_cgi_url%>/sendlink.cgi" METHOD="POST">

I am in the midst of fixing that error, but since my hard drive crashed last weekend, I am still re-installing software and also recovering data from my remote server.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: problems with recommend it mode In reply to
maybe someone can help me here. i searched for the rror in the script and here is where i found it:

__STOP_OF_MAIL__

if ($fields{'message'} ne "")
{
$msgtxt .= "Here is their message....\n";
$msgtxt .= "$fields{'message'}\n\n";
}
$msgtxt .= "$SITE_NAME\n";
$msgtxt .= "$ENDLINE\n";
$msgtxt .= "$SITE_URL\n\n";
$mailresult=&sendmail($fields{send_email}, $fields{send_email},
$fields{$recipemail}, $SMTP_SERVER, $subject, $msgtxt);

if ($mailresult ne "1")
{print "Content-type: text/html\n\n";
print "MAIL NOT SENT. SMTP ERROR: $mailresult\n";
exit
}

can anyone figure out what the problem could be from above? i checked bosbsie site and he did not have the same problem so it could be my fault or my isp fault. according to the person that reported this to me: she said the script was working before then all the sudden she is having problems. could it be that my isp changed some configuration?
Quote Reply
Re: problems with recommend it mode In reply to
 
Quote:
my isp fault

Most likely...check with them first.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: problems with recommend it mode In reply to
i beginning to think the same way but when someone submit a link i'm getting an e-mail
so could this be different? the problem with my isp, they never admit it's their fault untill you prove to them otherwise
Quote Reply
Re: problems with recommend it mode In reply to
Well, it could be a problem with the script. Why don't you try using the script that I provided in this Topic for you.

Yet, since you stated that script worked before, but now it mysteriously doesn't and if you have not made any changes to the script, then the blame seems to point at your hosting company!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: problems with recommend it mode In reply to
Thanks for your response. However, it still does not work. Does the 'recommend it' link still point to the cgi script or to the form?
Quote Reply
Re: problems with recommend it mode In reply to
It points to the cgi script!

Like the following:

Code:
<a href="<%db_cgi_url%>/sendlink.cgi">Recommend it!</a>

boytoy...

You can simply rename the sendlink.cgi to recommend.cgi file, so that you don't have to edit the link.html file.

You're a web designer and you can't figure out how to get this Mod to work...

Wink

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited March 10, 2000).]

[This message has been edited by AnthroRules (edited March 10, 2000).]
Quote Reply
Re: problems with recommend it mode In reply to
I have successfully installed many cgi scripts far more complicated than the send it mod for links 2.0. Are there any more corrections to this script that I am not aware of? I have the link pointed to the cgi script but the page is not being able to be displayed. Is there anything wrong with the script?
Quote Reply
Re: problems with recommend it mode In reply to
No...it is working for other LINKS users and it also works in my site.

Let me see the following files:

1) site_html_templates.pl
2) sendlink.cgi
3) link.html
4) sendlink_form.html
5) sendlink_error.html
6) sendlink_success.html

Save them as text files, upload them to your web server in a publicly accessible directory, and then post the URLs to the files.

Also, I made a mistake with the URL posted earlier in this Topic...It should be:

Code:
<a href="<%db_cgi_url%>/sendlink?ID=<%ID%>">Send Link</a>

which is clearly stated in the README file.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited March 10, 2000).]

[This message has been edited by AnthroRules (edited March 10, 2000).]
Quote Reply
Re: problems with recommend it mode In reply to
Okay, I have posted my 'send it' files here:

http://www.mantracker.com/send_link.html

thanks again for your quick response and help!
Quote Reply
Re: problems with recommend it mode In reply to
Okay...Here is your problem:

You are using the virtual URL path to the links.cfg NOT the ABSOLUTE PATH, which is USED in all the other .cgi files in LINKS!

Change the following:

Code:
require "http://www.mantracker.com/cgi-bin/links/admin/links.cfg";

to the following:

Code:
require "admin/links.cfg";

That is WHY the form is not loading.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: problems with recommend it mode In reply to
Did you change the permission of the script to 755 (rwxr-xr-x)? That is the first thing to check.

If you did and you REALLY did put the correct path to your links.cfg file, then I would recommend checking the syntax of the script. And I suppose you don't know how to do that...so here is what you need to do:

1) Access your account via telnet.
2) Connect to the directory where the sendlink script is located:

Code:
cd cgi-bin/links/

3) Check the syntax of the file:

Code:
perl -c sendlink.cgi

Then copy the error codes you receive if any in this Topic.

*sigh*

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: problems with recommend it mode In reply to
I replaced the url with the correct pathway:

require "/web1/tr100538/cgi-bin/links/admin/links.cfg";

and I still receive page cannot be displayed. I want so badly for this to work!!
Quote Reply
Re: problems with recommend it mode In reply to
Here is what I received after checking the syntax:

barber:/web1/tr100538 # cd cgi-bin/links/
barber:/web1/tr100538 # perl -c sendlink.cgi
syntax error at sendlink.cgi line 4, near "HTML>"
Bareword found where operator expected at sendlink.cgi line 5, near ""text/html;
charset=windows-1252" http"
(Missing operator before http?)
"use" not allowed in expression at sendlink.cgi line 8, at end of line
Bareword found where operator expected at sendlink.cgi line 283, near "/BODY></H
TML"
(Missing operator before HTML?)
syntax error at sendlink.cgi line 283, near "/BODY></HTML"
sendlink.cgi had compilation errors.
barber:/web1/tr100538 #

Quote Reply
Re: problems with recommend it mode In reply to
boytoy

Quote:
syntax error at sendlink.cgi line 283, near "/BODY></HTML"

I DO NOT EVEN HAVE HTML CODES in my sendlink script. Me thinks that you are attempting to move codes from the sendlink script into the recommend.cgi script!

The error messages you've posted leads me to believe this.

Try using the ORIGINAL sendlink scripts...and it will work!

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums


[This message has been edited by AnthroRules (edited March 11, 2000).]