The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Testing customised emails?

Discussion in 'E-mail Discussions' started by ManuelT, Feb 9, 2010.

  1. ManuelT

    ManuelT Well-Known Member

    Joined:
    Sep 30, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Is there a way of forcing a test with something like a bandwidth email? since i'm testing some changes and would like to see if there are any issues before my customers sees.

    Many thanks in advance.
     
  2. ManuelT

    ManuelT Well-Known Member

    Joined:
    Sep 30, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Also if anyone knows any syntax for how to add more data into the emails that would be good.
     
  3. ManuelT

    ManuelT Well-Known Member

    Joined:
    Sep 30, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Reply from cpanel is to create an account with a small amount of bandwidth, not really a great solution. Can anyone tell me where to add this as a feature request?
     
  4. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Are you referring to using a customized e-mail template for bandwidth limit notifications?

    What type of data or information are you looking to add into the e-mails for bandwidth limit notifications?

    For reference, via root SSH access, here are a few steps that may be used to create "local" (customizable) copies of the bandwidth limit e-mail templates (stored within "/var/cpanel/templates/"):
    Code:
    # cp -pRv /usr/local/cpanel/src/templates/admin_bandwidth_limit /usr/local/cpanel/src/templates/bandwidth_limit /var/cpanel/templates
    # cp -pv /var/cpanel/templates/admin_bandwidth_limit/main.default /var/cpanel/templates/admin_bandwidth_limit/main.local
    # cp -pv /var/cpanel/templates/bandwidth_limit/main.default /var/cpanel/templates/bandwidth_limit/main.local
    The template files with names ending in ".default" should remain as-is; any customizations should be applied to a copy of the stock-default file that is renamed from ".default" to ".local" such as what is seen in the following example listing:
    Code:
    # find /var/cpanel/templates/*bandwidth_limit
    /var/cpanel/templates/admin_bandwidth_limit
    /var/cpanel/templates/admin_bandwidth_limit/main.default
    /var/cpanel/templates/admin_bandwidth_limit/main.local
    /var/cpanel/templates/bandwidth_limit
    /var/cpanel/templates/bandwidth_limit/main.default
    /var/cpanel/templates/bandwidth_limit/main.local
    Additional reference: cPanel Forums - View Single Post - Possible to edit bandwidth notification emails?
     
  5. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    Feature requests may be posted one per unique thread in the following area: Feature Requests for cPanel and WHM - cPanel Forums
     
  6. ManuelT

    ManuelT Well-Known Member

    Joined:
    Sep 30, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Yes

    For Bandwidth limit prehaps expected months use to show if they need to upgrade to a higher plan.

    Thanks for that, I had most of the information and have made a few adjustments but without reliable testing it's hard to progress. The .local was new to me tho so i'll check it out is there a reason we have to copy the .default then copy it again to .local to make changes?
     
  7. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I believe this might be a good feature request (i.e., showing the month's estimated bandwidth transfer usage in contrast to the account's bandwidth transfer limit); I would consider posting the idea in the following forums area: Feature Requests for cPanel and WHM - cPanel Forums

    I believe it is sufficient to setup only the custom template ending in the suffix of ".local"; however, I usually recommend retaining the extra copy of the ".default" template as a backup reference and to quickly compare against (e.g., via the CLI utility "diff") as it would be more accessible being in the same parent directory path (within "/var/cpanel/templates/"). In addition, by having a separate copy of the default template it is easier to compare differences between an existing or older default template and future revisions of the default template and therefore more accurately know what, if any, changes may be needed in the customized local template, more so than if the only copies available are the local customization and the stock-default in the source templates.

    Example commands for comparing differences (via root SSH access):
    Code:
    # diff -us /var/cpanel/templates/bandwidth_limit/main.default /usr/local/cpanel/src/templates/bandwidth_limit/main.default
    # diff -us /var/cpanel/templates/bandwidth_limit/main.default /var/cpanel/templates/bandwidth_limit/main.local
    # diff -us /usr/local/cpanel/src/templates/bandwidth_limit/main.default /var/cpanel/templates/bandwidth_limit/main.local
     
  8. ManuelT

    ManuelT Well-Known Member

    Joined:
    Sep 30, 2005
    Messages:
    55
    Likes Received:
    0
    Trophy Points:
    6
    Sorry for the delay been busy with other things.

    I'm still not sure what syntax to use or any var's that I can import. Is there any information you can provide on this?

    I've added one of the items to the feature request list, don't want to give away all my business advantage. :)
     
    #8 ManuelT, May 27, 2010
    Last edited: May 27, 2010
Loading...
Similar Threads - Testing customised emails
  1. Craig Rollison
    Replies:
    4
    Views:
    231

Share This Page