Gossamer Forum
Home : Products : Links 2.0 : Customization :

Mail Problem: No Validation

Quote Reply
Mail Problem: No Validation
very important problem:

I am NOT receiving the Validation email when somebody tries to add a link to the database. My sendmail path and email address are correct. Also, everything when trying to add a link works perfectly, I just do not receive the validation email, which prevents me from validating the link.

After a search, I have found in one thread that one needs to have the Mailer.pm in the $db_lib_path... Could that be the problem?
Eliot, you were the one who wrote that, any suggestions??

Any help would be appreciated,

Thanks in advance
Cheers,
Aymeric/

Quote Reply
Re: Mail Problem: No Validation In reply to
Im not a perl expert but in links.cfg there is a option to send the email confirmation, in $db_email_add = 1;

here is what i have in links.cfg maybe your missing that point.

# Email Options
# --------------------------------------------------------
# NOTE: Be sure to edit the text of the message. It can be found
# in the templates directory: email-add.txt, email-del.txt and
# email-mod.txt respectively.

# Set only ONE of either $db_mail_path which should go to a
# mail program like sendmail, or $db_smtp_server which will use
# a SMTP server. Do not set both at once!

# PATH of sendmail. # SMTP Server
$db_mail_path = '/usr/lib/sendmail -t'; $db_smtp_server = '';

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'info@arquired.net';

# Notify visitors automatically when their links are validated?
$db_email_add = 1;

# Notify visitors automatically when their links are modified?
$db_email_modify = 1;

# Log all outgoing messages? Put the full path to a logfile and make sure it
# exists and is writeable (chmod 666 -rw-rw-rw-). This logfile can get pretty
# big!
$db_mailer_log = '';
# 0 = use jump.cgi in the newsletter. 1 = direct_link
$direct_link_newsletter = 0;

Carlos Alcocer
http://www.arquired.net
Quote Reply
Re: Mail Problem: No Validation In reply to
In Reply To:
Eliot, you were the one who wrote that, any suggestions??
Huh? Nope...I am not associated with Gossamer Threads. Just volunteer my time to help out users in the forums when I have time.

In Reply To:
Im not a perl expert but in links.cfg there is a option to send the email confirmation, in $db_email_add = 1;
That is not correct. That variable controls sending out a CONFIRMATION message to the user when the link is VALIDATED. There are no flag/toggle variables out-of-the-box that controls sending VALIDATION messages to the ADMINISTRATOR.

Aymeric

Make sure that your Mailer.pm file is in the directory that you specified for the $db_script_path/$db_lib_path in the links.cfg. The problem could be is that the script is unable to find the Mailer.pm and thus you receive no VALIDATION message.


Regards,

Eliot Lee
Quote Reply
Re: Mail Problem: No Validation In reply to
In Reply To:
In reply to:
--------------------------------------------------------------------------------


Eliot, you were the one who wrote that, any suggestions??




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

Huh? Nope...I am not associated with Gossamer Threads. Just volunteer my time to help out users in the forums when I have time.


When I said that, I meant that you were the one who had written that in the forum, as a reply to someone else. I can't remember the thread though. And I know you help voluntarily, so much and so well....

I will try to do what you said tomorrow morning, see if it works, thank you very much,
Cheers,
Aymeric.

Quote Reply
Re: Mail Problem: No Validation In reply to
Elliot:

This is what i meant:

might be a silly sugestion but did you change the two lines below "$db_admin_email =" from 0 to 1 like

# Email address of the administrator. BE SURE TO SET!
$db_admin_email = 'Gordon@youtrek.com';

# Notify visitors automatically when their links are validated?
$db_email_add = 1;

# Notify visitors automatically when their links are modified?
$db_email_modify = 1;


thanks.


Carlos Alcocer
http://www.arquired.net
Quote Reply
Re: Mail Problem: No Validation In reply to
Again those variables ($db_email_add and $db_email_modify) DOES NOT control the EMAIL sent to the Admnistrator when a site is in the Validate database. Tongue Those variables ONLY control the emails that are sent to LINK OWNERS when a link is added or modified.

Regards,

Eliot Lee
Quote Reply
Re: Mail Problem: No Validation In reply to
Eliot, my $db_script_path is correct, since all my other programs using it are working. About the $db_lib_path though, here is how I have it:


# -------------------------------------------------------------
# Extra Paths -- unless you feel the need to rename files, you
# can leave this as is.
# -------------------------------------------------------------
$db_script_url = $db_dir_url . "/admin.cgi"; # Admin script.
$db_header_path = $db_script_path . "/header"; # Place to store header and footers.
$db_footer_path = $db_script_path . "/footer";
$build_search_url = $db_cgi_url . "/search.cgi"; # URL of search script.
$build_add_url = $db_cgi_url . "/add.cgi"; # URL of add script.
$build_modify_url = $db_cgi_url . "/modify.cgi"; # URL of modify script.
$build_jump_url = $db_cgi_url . "/jump.cgi"; # URL of jump script.
$build_email_url = $db_cgi_url . "/subscribe.cgi"; # URL of email update script.
$build_rate_url = $db_cgi_url . "/rate.cgi"; # URL of rate script.
$db_mail_url = $db_dir_url . "/nph-email.cgi"; # URL of admin mass mail script.
$build_css_url = $build_root_url . "/links.css"; # URL to your CSS file.

$db_lib_path = $db_script_path; # PATH of library files.
$db_links_name = "$db_script_path/data/links.db"; # PATH to links database.
$db_spider_name = "$db_script_path/data/spider.db"; # PATH to goFetch spider database.
$db_spidered_name = "$db_script_path/data/spidered.db"; # PATH to goFetch spidered database.
$db_category_name = "$db_script_path/data/categories.db"; # PATH to category database.
$db_valid_name = "$db_script_path/data/validate.db"; # PATH to validation database.
$db_modified_name = "$db_script_path/data/modified.db"; # PATH to modification database.
$db_url_name = "$db_script_path/data/url.db"; # PATH to URL lookup database.
$db_email_name = "$db_script_path/data/email.db"; # PATH to email database.
$db_links_id_file_name = "$db_script_path/data/linksid.txt"; # PATH to links counter file.
$db_category_id_file_name = "$db_script_path/data/categoryid.txt"; # PATH to category counter file.
$db_spider_id_file_name = "$db_script_path/data/spiderid.txt"; # PATH to spider id file.
$db_linkcount = "$db_script_path/data/linkcount.txt"; # PATH to spider counter file.
$db_hits_path = "$db_script_path/data/hits"; # PATH to hits directory.
$db_template_path = "$db_script_path/templates"; # PATH to templates.
$db_rates_path = "$db_script_path/data/rates"; # PATH to ratings.
1;



Shouldn't it be in between " " like all the others? is that my problem?

If that's not it, I'm really stuck.

Thanks,
Aymeric.