Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Problem with rejection emails

Quote Reply
Problem with rejection emails
In version 2.04 when I reject a site the email is sent to me instead of the site's webmaster. The approval emails go to the webmaster as they should.

How can I correct this?

I have seen other threads about this, but no one has answered it.



Thank You

Quote Reply
Re: [DroopyKitty] Problem with rejection emails In reply to
Hi,

I believe this is a bug with 2.0.4 as rejection emails only get emailed to the linkowner, not contact email address. If you haven't made many mods, I'd recommend upgrading to 2.0.5, or 2.1.0 when it comes out.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Problem with rejection emails In reply to
I did the 2.05 upgrade, but I had done extensive modifications to the site. It didn't work properly so, I went back to 2.04.

Is there no fix for this problem?

Thanks

Smile
Quote Reply
Re: [DroopyKitty] Problem with rejection emails In reply to
Hi,

Look in admin/Links/Tools.pm for sub _delete_email_record. In there you will see where it picks the email address to send to. It should pick $link->{Contact_Email} first, then the LinkOwners email otherwise.

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Problem with rejection emails In reply to
Where exactly does it go in the following routine? I put it where I thought was correct and got the message: "Unable to send validation email, missing or bad email address."





Thank You

Crazy



Delete and email a record.

#

my ($db, $email_db, $link, $reason) = @_;

# Get the email address first.

my $email = $email_db->get ($link->{LinkOwner}, 'HASH') || {};

# Delete the record.

_delete_record ($db, $link->{ID}) or return $GT::SQL::error;

# Mail the user.

foreach (keys %$email) { $link->{$_} = $email->{$_} unless (exists $link->{$_}); }

if (! defined $link->{Email} or ($link->{Email} !~ /^.+\@.+\..+$/)) {

return Links::language('VAL_CANTEMAIL');

}

# Setup category tag, and Contact_Email, Contact_Name.

$link->{Category} = join "\n", values %{$db->get_categories ($link->{ID})};

$link->{Contact_Email} = $link->{'Contact Email'} = $link->{Email} || '';

$link->{Contact_Name} = $link->{'Contact Name'} = $link->{Name} || $link->{Username} || '';

my $mail = Links::user_page ('email-del.txt', $link);

require GT::Mail;

GT::Mail->send (

to => $link->{Email},

from => $CFG->{db_admin_email},

subject => Links::language('VAL_REJECTSUB') || 'Your link has been rejected.',

msg => $reason,

smtp => $CFG->{db_smtp_server},

sendmail => $CFG->{db_mail_path},

debug => $Links::DEBUG

) or return Links::language ('VAL_CANTEMAIL', $GT::Mail::error);

return;

}
Quote Reply
Re: [DroopyKitty] Problem with rejection emails In reply to
Hi,

Try changing:

to => $link->{Email},

to:

to => $link->{Contact_Email} || $link->{Email},

Cheers,

Alex
--
Gossamer Threads Inc.
Quote Reply
Re: [Alex] Problem with rejection emails In reply to
I changed it to the follwing and I am still getting the rejection emails. Unsure



my $mail = Links::user_page ('email-del.txt', $link);

require GT::Mail;

GT::Mail->send (

to => $link->{Contact_Email} || $link->{Email},

from => $CFG->{db_admin_email},

subject => Links::language('VAL_REJECTSUB') || 'Your link has been rejected.',

msg => $reason,

smtp => $CFG->{db_smtp_server},

sendmail => $CFG->{db_mail_path},

debug => $Links::DEBUG

) or return Links::language ('VAL_CANTEMAIL', $GT::Mail::error);

return;

}
Quote Reply
Re: [DroopyKitty] Problem with rejection emails In reply to
That must mean that Contact_Email is empty or contains your email address.
Quote Reply
Re: [RedRum] Problem with rejection emails In reply to
No. The contact email is the person that submitted the link and the space is not empty. I have deleted over 20 links since I tried that fix. Every one of them had a contact name and email. Every one of them has gone to my email.