[Date Prev][Date Next][Thread Prev] [Thread Next][Date Index] [Thread Index]

Re: Customizing email responses


  • From: Gunnar Hjalmarsson  
  • Date: Sat, 08 Feb 2003 07:40:23 +0100

Paul wrote:
I want to be able to modify the message that's emailed when an account is deactivated.

I always advise the Ringlink users to avoid making changes directly in the program files, since that makes upgrades more difficult. In many cases it's possible to make use of the the translation feature and edit the en.po file instead. In this case, however, you'd better edit site.pm:


Exchange line 433-435 for

    $text = [whatever you like];

I would like to be able to not simply add a new message here ... but to also format this so I can have separate paragraphs so the URL I send them to (the Site Admin page where they can pick up fresh code) is on it's own line for clarity and to beef up this default message.

To preserve the newline characters you put in $text, you can replace the beginning of line 437:


    $body = rlmain::trim($text)

with

    $body = $text

Note, though, that that change affects the "Activate" notifications as well.

Is it possible to set this up the same way as the "add" email is done?

Of course it's *possible*, but then we are talking about a much bigger code rewrite.


Any reason these other standard email messages are "hard-coded" into the scripts and not readily modifiable? I'm guessing there is probably a reason for that, I just am not aware of it.

The reason is that out from my experience, there would still typically be a need to edit 'on the fly', and I concluded that the possibility to do so was enough. Some day in the future somebody may find it worthwhile to modify Ringlink in this respect. ;-)


Hope this helps. Let us know if you encounter problems.

/ Gunnar


References to:
Paul

[Date Prev][Date Next][Thread Prev] [Thread Next][Date Index] [Thread Index]