ISPConfig 3.0.5.4 Email Templates

Discussion in 'General' started by andypl, Apr 25, 2014.

  1. andypl

    andypl Member

    Hi,

    I noticed a new option in the panel "Email Templates" and added a new entry "Default welcome email" but when creating a new email account or the new client is not receiving any email with this entry.
    When creating a new email account welcome message is created based on file welcome_email_en.txt
    Is it possible to ask for information on how it works?

    Regards
     
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    This is a welcome message for new clients, not for new email accounts. A welcome message is sent to the client when the client is created. Check that you have a administrator name and email address set under system > interface config.
     
  3. andypl

    andypl Member

  4. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Go to system -> interface main config -> tab "mail".
    You should find "Administrators name" and "Administrators email" there.
    Those entries are used for sending.
     
    DDArt likes this.
  5. andypl

    andypl Member

    I have set these fields but it does not work.
     
  6. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Could you please post the content of your
    /usr/local/ispconfig/server/conf/mail/welcome_email_en.txt
    /usr/local/ispconfig/server/conf-custom/mail/welcome_email_en.txt (if present)
     
  7. andypl

    andypl Member

    But these files are responsible for sending a notification if you create a new email account and the problem that I described above is to send a notice when we create a new customer and these files are not taken into account.
     
  8. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Sorry, my fault. I'll have a look.
     
  9. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Okay, could you please open:
    /usr/local/ispconfig/interface/web/client/client_edit.php
    Then in line 367 change
    PHP:
    $system_config $app->getconf->get_global_config();
    to
    PHP:
    $system_config $app->getconf->get_global_config('mail');
    This should solve your issue. We'll patch this.
     
  10. andypl

    andypl Member

    This solution helped :) but I found other problems.

    If you set the variable in the message: {mail_servers} {web_servers} {dns_servers} {db_servers} is in the mail do not have any information on these servers.
    For me an email should be sent when you set limits on the "Limits"
     
  11. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    Those variables are unused and will be part of 3.1 afaik.
     
  12. andypl

    andypl Member

    Ok ;)

    I think that this option should also be to send a notification when we create a new email account.
    Such notification should be set for each mail server separately because each server can have different settings.
     
  13. Croydon

    Croydon ISPConfig Developer ISPConfig Developer

    That's what the template files are for, that I mentioned earlier in the thread ;)
    Those are sent to each newly created mailbox.
     
  14. Ark74

    Ark74 New Member

    So, where should new languages templates be placed on in order to make a pull request?
    • /usr/local/ispconfig/server/conf/mail/
    • /usr/local/ispconfig/server/conf-custom/mail/
     
  15. Jesse Norell

    Jesse Norell Active Member

    The files under server/conf/mail/ are the templates for emails, that's where you would put the ones for a new language if you wanted to create a pull request. The files under conf-custom are for local config file overrides, those are never supplied by ISPConfig.
     
  16. Ark74

    Ark74 New Member

    Thanks. I try that.
     

Share This Page