Help - Search - Members - Calendar
Full Version: Tweaking "from" in email notifications
Movable Type Community Forum > Additional Resources > Tips and Tricks
josephgrossberg
When someone leaves a comment at my site, I receive an email from [them] to [me] (as far as the headers go).

When I get a trackback or a comment sans email address, I get an email from [me] to [me] and that goes right into my spam folder.

I can't change that setting in the spam filters and I don't want to make email address required.

So, is there a way to change this so all MT email notifications come from a predetermined address (which I can then flag as "safe" in my spam filters) without hard-coding it into CMS.pm ?
oscarf
I was with you right up to your last sentence. Hard coding (which I too try to avoid) is the easiest way that I can think of. If so, you want to look not only at CMS.pm which sends notifications, but also Comments.pm and Trackback.pm.

Barring this, you could change your author email to some alias that would not get caught by your spam filter (perhaps?). That's the only thing I can think of.

If it were me, I would make the email field required, and just never show its contents in the post. After all, if they're online, they have an email address, and if they don't trust you enough to put it in the post, well ...

Just some thoughts ... maybe someone else has some better ones ... sad.gif
josephgrossberg
oscarf:

Well, I'm not keen on requiring email for two reasons:

* most people will put garbage email addresses (e.g. foo@nospam.com), like I do when I "register" at news sites
* it doesn't solve the trackback problem

Thanks for pointing me to the other two Perl files though. I may alter them if nothing else gets suggested.
oscarf
Yeah, that's true. Well, just stick a hard-coded email address in the "from" key, and that's where they'll all go, if you go that route.
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.