Gossamer Forum
Home : Products : Links 2.0 : Discussions :

can you turn off rejection outgoing emails

Quote Reply
can you turn off rejection outgoing emails
I know this is probably not a new problem but is it possible to turn off the outgoing rejection email from links version 2.

Thanks
tekno

Quote Reply
Re: can you turn off rejection outgoing emails In reply to
Well...you can turn off email notification completely when you validate records with the following variable:

Code:

$db_email_add = 0;


Now...if you only want to turn off rejection letters, then do the following:

1) Add the following variable and config in your links.cfg file:

Code:

# Send out Rejection Letter when validating Links
$db_email_delete = 0;


AFTER the following codes:

Code:

$db_email_add = 1;


2) Then replace the following codes in the sub validate_records routine in the db.pl file:

Code:

else { &html_reject_email (%{$links{$id}}); }


with the following codes:

Code:

else {
if ($db_email_delete) {
&html_reject_email (%{$links{$id}});
}
}


Hope this helps.

Regards,


Eliot Lee