Help - Search - Members - Calendar
Full Version: Multiple e-mails sent on comments and TrackBacks
Movable Type Community Forum > Additional Resources > Tips and Tricks
kymberlie
I was wondering if anyone knew of a way to notify multiple people when pings and comments are sent.  There are three of us working on I Wish, You Wish and I would like it to work so that everyone got notification.  I was looking around on the Comments.pm and Trackback.pm file and assume it would go there near the end, but wanted to check before I messed everything up.   biggrin.gif   Thanks!

Kymberlie
kadyellebee
Morning, darlin' smile.gif

Is I Wish You Wish on a separate copy of MT from other blogs?  If so, then modifying one of the files probably would work.  If not, then it will make all notifications for other blogs on the same installation go to all 3 of you.  

It might be eaiser to just modify the profile email addresses to show all of your email addresses.  I haven't tried that out, but since that's what controls who gets the notifications (the person who posts the entry gets the notification), you could try putting all three email addresses in each profile separated by commas and seeing if that will work....

Post back if it doesn't and I'll look through the files to confirm where it is that it controls the email addresses for you to hack smile.gif

Kristine
kymberlie
Kristine,

I changed IWYW so that it's like Picture Yourself and pings the page as opposed to an entry.  Is that going to effect it since there technically is no author?

Kymberlie
kadyellebee
Hmmm, I'm not sure who gets the ping notification when pinging a category (which is what that tutorial for PY that I mentioned yesterday on my blog essentially does).

Maybe its the person who created the category - if you go into the Edit Categories page, it has "Created by: Author Name" - so maybe for the category that you set up on the index page, you would look up which category that was and who set it up... then change that persons profile to have multiple email addresses?

I'm not 100% sure that's the best way to do it, or if that will work, but try it out smile.gif

Kristine
kymberlie
Nope, I'm the category creator and I didn't receive anything when I did some test pings.

Btw, that's the code you gave me for Picture Fish when I was thinking about adding pings, so thanks again.   smile.gif

Kymberlie
kymberlie
Also, quick question: you said anytime someone mentions (I assume links) to you or PY you get notification.  I just made a post at NF with a link to IWYW and it didn't autoping.  Should it have?
kadyellebee
Did anybody get the test ping notification?  If not, you might double check that you have notifications turned on.  If so, who got it, and why??! smile.gif  

I don't have multiple authors on any of the blogs that I have the category pings thing turned on.  Well, on PY, Christine gets them.  So maybe its the blog owner?  Which user created the other users?  

Kristine
kadyellebee
As for automatically getting a ping, I think that's its because I have autodiscovery on for kdlb.  That searches my entries for links that have ping URLs associated with them in the other blogs.  So if NF has autodiscovery turned on, it should ping IWYW when you blog about it.  

Kristine
kymberlie
I'll check with the others and see if anyone is getting a notification.

I looked at NF and I do have autodiscovery on.  I assume since I linked to http://www.iwishyouwish.com and that's not associated with any particular ping, that's why one didn't get sent out.

Kymberlie
kymberlie
Wendell's getting them.  :)

Now, to figure out how to add me too....

Maybe I will go mess around with the .pm files.    :0
urbandyke
You're a brave girl.  :)
kymberlie
Okay, my ideas didn't work.  Anyone else have any?
kadyellebee
Did you try making Wendall change his email address on his profile to all 3 of your emails?  

When I looked through the files, I found that the spots that you'd need to modify are these:
lib/MT/App/Comments.pm around the section in line 122
lib/MT/App/Trackback.pm around the section in line 214

But I'm not positive what would need to be edited since I'm really not a Perl coder!!! smile.gif

Kristine
kymberlie
He added us all and it still didn't send pings to us.  Drat.  Anyone here know Perl?   wink.gif
girlie
Does this work:

After line 126 in Comments.pm, and line 226 in Trackback.pm, add this:

CODE
Cc => 'other@email.address.com',


??

FYI, those lines both look like this:

CODE
my %head = ( To => $author->email,
kymberlie
Girlie,

Nope, that didn't work either.   sad.gif

Kymberlie
kadyellebee
Here's a thought....
I wonder if you changed Wendall's profile email address to iwish@neuroticfishbowl.com and then set up anemail account for "iwish" and use the forwarders option to make any mail to that address go to all 3 of you.  (You'd go into your cpanel and click Forwarders under the Mail section -- I can't tell from mine if you have to set up 3 forwarders or if you can put email addresses with commas in there)

I don't know, I was just playing around on my cpanel and saw that and thought of you smile.gif

Kristine
kymberlie
I tried that and it didn't seem to work.  For some reason, though, I'm not getting pings at all, even changing Wendell's address to mine.  Going to have to have another look at it.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.