Gossamer Forum
Home : Products : Gossamer Links : Version 1.x :

Email Admin - Simple Question?!

Quote Reply
Email Admin - Simple Question?!
Hi, I want to stop LinksSQL from e-mailing me everytime someone submits a site. I have this set up in the e-mail area of links.pm

Code:
# EMAIL SETTINGS
# --------------------------------------------------
# These are your emailing settings.

# This should be the email address where all admin notices are sent, and
# it's also the Reply-To on any outgoing mail.
$LINKS{db_admin_email} = 'links@celebhoonetwork.com';

# If you are on UNIX set db_mail_path to the location of sendmail. If you
# are on NT, set db_smtp_server to the hostname for your SMTP server.
# NOTE: Only one should be set.
$LINKS{db_smtp_server} = '';
$LINKS{db_mail_path} = '/usr/sbin/sendmail';

# Set email_add to 1 to mail notices when a link has been validated, set
# email_mod to 1 to mail notices when a link has been modified.
$LINKS{email_add} = 0;
$LINKS{email_mod} = 0;
but it still e-mails me! How do I stop it!

Jeffb

Quote Reply
Re: Email Admin - Simple Question?! In reply to
There is no variable in the Links.pm that controls sending the email to the administrator. What you need to do is ADD another variable called:

Code:

$LINKS{email_confirm} = 1;


underneath the following variables:

Code:

$LINKS{email_add} = 0;
$LINKS{email_mod} = 0;


Then in the add.cgi file, add the following codes:

Code:

if ($LINKS{email_confirm}) {


above the following codes:

Code:

# Check to make sure that there is an admin email address defined.
$LINKS{db_admin_email} or die ("Admin Email Address Not Defined in config file!");


Then add a closing bracket } after the following codes:

Code:

$mailer->send or die $Links::Mailer::error;


BTW: How do you expect to know when to validate links if you turn-off the email notification???

Anyway...follow the above instructions and you will not be sent email messages.

Regards,

Eliot Lee

Quote Reply
Re: Email Admin - Simple Question?! In reply to
FYI - We have so many submissions every day that the e-mail admin option is a waste of time. We work full time on validating and adding new links. Check out the new LinksSQL driven site at http://www.celebhoo.com

JeffB