Gossamer Forum
Home : Products : Links 2.0 : Installation -- Windows :

Urgently need help - newsletter

Quote Reply
Urgently need help - newsletter
Hi everyone,
Since the first day after completed installing Links2.0, I still encounter the mailing problem.
1. Whenever I tried to delete some duplicate links, an error will prompt -

CGI ERROR
==========================================
Error Message : Unable to send rejection message. Reason:

That won't be that much problem to me, but the most important thing is that I can't send any mail to links owner at all. I will see an error that says:
f46 - Unable to mail to 'webmaster@domain.com'. Reason:

for all links.
What should I do now, and where can I debug this problem? By the way, my server is hosted on WinNT and I'm using smtp. Please help. Thanks and I really appreciate any help.


------------------
Quote Reply
Re: Urgently need help - newsletter In reply to
1) Make sure that you a maillog specified in the links.cfg file as the following:

Code:
$db_mailer_log = 'C:/InetPub/wwwroot/account/cgi-bin/admin/data/mailer.log";

Change the above to your directory and mailer.log name.

Make sure that this file is changed to Read and Write permissions for IWAM/MACHINENAME, IUSR/MACHINENAME, and Everyone.

2) Make sure that you have the Mailer.pm file uploaded to your $db_lib_path directory.

3) Make sure that you have the following template files uploaded in your template directory:

Code:
$email-add.txt
$email-del.txt

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Urgently need help - newsletter In reply to
Thanks Eliot,
I've forgotten to mention that my Mailserver is located in other place. I mean, the (www) is in Singapore while (mail) is at UK. Since I have another domain that is on the same server with the www site that is using this Links2.0, I'd changed to that email address. Although it works with that address, I would still like to have it with the original ones.

So it works now with the temp address, I can send it sucessfully.
But, what the Links owners received is just:
>Unkown Tag: field_name
instead of the >50 words message that I'd wrote. I'd tried to use <%field_name%> tag with my message. Please help.


------------------
Quote Reply
Re: Urgently need help - newsletter In reply to
You need to use the EXACT name of your fields NOT <%field_name%>! This is an example code. Change field_name to the exact field names in your links.def file.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Urgently need help - newsletter In reply to
okay,
I'd already knocked my head on the wall for a few times and I'm still confused.
What I want to do is to let them know that their website has been added to my database. So, my sentence was "Your site 'site title' has been added to our database'.

What should I replace that 'site title' to?
And I don't really understand about:
Change field_name to the exact field names in your links.def file.

Sorry, I'm totally new in this and I really appreciate your help Eliot.


------------------
Quote Reply
Re: Urgently need help - newsletter In reply to
uhh... are you refering to:
# Database file to use -- defined in links.cfg.
$db_file_name = $db_links_name;
# Counter file to use -- defined in links.cfg.
$db_id_file_name = $db_links_id_file_name;
# The column name for the database key.
$db_key = 'ID';
# Database delimeter.
$db_delim = '|';
# Title used in admin output.
$html_title = 'Links Database';
$html_object = 'Link';

I'm I supposed to use $html_title instead of <%field_name%>?

------------------
Quote Reply
Re: Urgently need help - newsletter In reply to
Uh...

<%Title%>

Look at all the field names in the %db_def hash section in the LINKS.DEF NOT the links.cfg file.

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Urgently need help - newsletter In reply to
I'm in a very BIG trouble now. I've been receiving emails from all Links owners asking what am I talking about. Which URL has been added to the Database?
Eliot, what is the exact word that I should replace the <%field_name%> with? I'd copied this from my links.def. I'm totally NUTS. Hope this works. Thanks.

# Definition of your database file.
%db_def = (
ID => [0, 'numer', 5, 8, 1, '', ''],
Title => [1, 'alpha', 40, 75, 1, '', ''],
URL => [2, 'alpha', 40, 75, 1, 'http://', '^http|news|mailto|ftp'],
Date => [3, 'date', 15, 15, 1, \&get_date, ''],
Category => [4, 'alpha', 0, 150, 1, '', ''],
Description => [5, 'alpha', '40x3', 500, 0, '', ''],
'Contact Name' => [6, 'alpha', 40, 75, 1, '', ''],
'Contact Email' => [7, 'alpha', 40, 75, 1, '', '.+@.+\..+'],
Hits => [8, 'numer', 10, 10, 1, '0', '\d+'],
isNew => [9, 'alpha', 0, 5, 0, 'No', ''],
isPopular => [10, 'alpha', 0, 5, 0, 'No', ''],
Rating => [11, 'numer', 10, 10, 1, 0, '^[\d\.]+$'],
Votes => [12, 'numer', 10, 10, 1, 0, '^\d+$'],
ReceiveMail => [13, 'alpha', 10, 10, 1, 'Yes', 'No|Yes']
);

# Database file to use -- defined in links.cfg.
$db_file_name = $db_links_name;
# Counter file to use -- defined in links.cfg.
$db_id_file_name = $db_links_id_file_name;
# The column name for the database key.
$db_key = 'ID';
# Database delimeter.
$db_delim = '|';
# Title used in admin output.
$html_title = 'Links Database';
$html_object = 'Link';

# Field Number of some important fields. The number is from %db_def above
# where the first field equals 0.
$db_category = 4; $db_modified = 3; $db_url = 2;
$db_hits = 8; $db_isnew = 9; $db_ispop = 10;
$db_contact_name = 6; $db_contact_email = 7; $db_title = 1;
$db_votes = 12; $db_rating = 11; $db_mail = 13;

# Field number to sort links by:
$db_sort_links = 1;

------------------
Quote Reply
Re: Urgently need help - newsletter In reply to
You use tags like the following:

Code:
<%URL%>

Code:
<%Description%>

Code:
<%Title%>

Hope this REALLY helps now...

Regards,

------------------
Eliot Lee....
Former Handle: Eliot
* Check Resource Center
* Search Forums
Quote Reply
Re: Urgently need help - newsletter In reply to
Thanks Eliot,
It's working now... yahoooooo....
Quote Reply
Re: Urgently need help - newsletter In reply to
You're welcome....FINALLY!

Wink

Regards,

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