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

Pugdog's Recommend It

Quote Reply
Pugdog's Recommend It
I am using Pugdog's Recommend_It script, and it works great. I am, however, looking to add a modification that will e-mail me a confirmation of recommended links. We're just looking to audit the use of this feature.

I am assuming that I need to add something to sub send_sendmail in Mailer.pm.

I tried the following, but received a software error:

Code:
if ($self->{'subject'} eq 'Site Recommendation') {

open ($s, "|$self->{'sendmail'}");
print $s "To: ", $LINKS{db_admin_email}, "\n";
print $s "From: ", $self->{'from'}, "\n";
print $s "Reply-to: ", $self->{'reply'}, "\n" if self->{'reply'};
print $s $self->{'headers'}, "\n" if $self->{'headers'};
print $s "X-Mailer: Mailer::$VERSION (http://www.gossamer-threads.com/scripts/)\n";
print $s "Subject: ", $self->{'subject'}, "\n\n";
print $s $self->{'msg'};
close $s;
}
I put this in between the end of the primary mailing code and:L

Code:
$self->log_msg() or return undef;

return 1;
Can someone let me know what my problem is? :)

Thanks.

Subject Author Views Date
Thread Pugdog's Recommend It Canucks 2070 Jul 26, 2000, 10:39 AM
Thread Re: Pugdog's Recommend It
pugdog 2025 Jul 26, 2000, 11:16 AM
Post Re: Pugdog's Recommend It
Canucks 2012 Jul 26, 2000, 12:39 PM
Thread Software Error
Canucks 1997 Jul 26, 2000, 2:35 PM
Thread Re: Software Error
pugdog 1991 Jul 26, 2000, 9:35 PM
Thread Re: Software Error
Canucks 1979 Jul 26, 2000, 10:22 PM
Post Re: Software Error
pugdog 1987 Jul 27, 2000, 12:07 AM