In this thread:
http://www.gossamer-threads.com/...orum.cgi?post=147710
A question was asked about "a mod that would also send a bcc message to the website."
It was recommended that this line be added to recommend_it.cgi :
bcc => $CFG->{'admin_email'}
It didn't work and I could find no other responses to the question. So, here is what I came up with. Let me know if this is a good/bad idea:
1. In the recommend.html template add this line to the form:
<input type="hidden" name="bcc_email" value="you@yourdomain.com">
2. Open recommend_it.cgi and add the line in bold:
GT::Mail->send (
smtp => $CFG->{db_smtp_server},
sendmail => $CFG->{db_mail_path},
to => $IN->param($recipemail),
from => $IN->param('send_email'),
subject => $subject_line,
reply => $IN->param('send_email'),
bcc => $IN->param(bcc_email),
msg => $formatted_message,
debug => $Links::DEBUG
) or Links::fatal ("Unable to send mail: $GT::Mail::error");
That's it. I tested it and everything seems to work.
I've learned so much visiting this board and I'm hoping this isn't a bad idea so I can finally say I was able to give something back by answering a question.
...waiting for my bubble to be burst...
http://www.gossamer-threads.com/...orum.cgi?post=147710
A question was asked about "a mod that would also send a bcc message to the website."
It was recommended that this line be added to recommend_it.cgi :
bcc => $CFG->{'admin_email'}
It didn't work and I could find no other responses to the question. So, here is what I came up with. Let me know if this is a good/bad idea:
1. In the recommend.html template add this line to the form:
<input type="hidden" name="bcc_email" value="you@yourdomain.com">
2. Open recommend_it.cgi and add the line in bold:
GT::Mail->send (
smtp => $CFG->{db_smtp_server},
sendmail => $CFG->{db_mail_path},
to => $IN->param($recipemail),
from => $IN->param('send_email'),
subject => $subject_line,
reply => $IN->param('send_email'),
bcc => $IN->param(bcc_email),
msg => $formatted_message,
debug => $Links::DEBUG
) or Links::fatal ("Unable to send mail: $GT::Mail::error");
That's it. I tested it and everything seems to work.
I've learned so much visiting this board and I'm hoping this isn't a bad idea so I can finally say I was able to give something back by answering a question.
...waiting for my bubble to be burst...