blackguerilla / clients-oriented-ftp

Automatically exported from code.google.com/p/clients-oriented-ftp
0 stars 0 forks source link

Custom Email Templates not being sent out for new clients. #448

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.  I click "New client (welcome)" email template. 
2.  I click on "Use custom template" check box. 
3.  I fill in the template text. 

I expected the custom template text to be used.  

Instead, I received the 'default' template. 
"Welcome to ProjectSend

A new account was created for you. From now on, you can access the files that 
have been uploaded under your account using the following credentials:

Your username: test1
Your password: password123

You can log in following this link: http://domain.com/portal
Please contact the administrator if you need further assistance.

Version: r514 
On Shared hosting via FatCow.com

Original issue reported on code.google.com by s...@viproductions.net on 28 Feb 2014 at 6:46

GoogleCodeExporter commented 9 years ago
Hi, im new to this platform, same problem here with r514.

Original comment by mette...@gmail.com on 15 May 2014 at 12:38

GoogleCodeExporter commented 9 years ago
Hello,

I have the same problem, that I fixed using the following patch (r561):
--- includes/classes/send-email.php.orig    2015-03-25 17:04:55.742137690 +0100
+++ includes/classes/send-email.php 2015-03-25 17:05:16.722136645 +0100
@@ -105,7 +105,7 @@
        switch ($type) {
            case 'new_client':
                    $filename   = 'new-client.html';
-                   $body_check = (!defined('EMAILS_HEADER_FOOTER_CUSTOM') || 
EMAILS_HEADER_FOOTER_CUSTOM == '0') ? '0' : EMAILS_CLIENT_BY_USER_USE_CUSTOM;
+                   $body_check = (!defined('EMAILS_CLIENT_BY_USER_USE_CUSTOM') || 
EMAILS_CLIENT_BY_USER_USE_CUSTOM == '0') ? '0' : 
EMAILS_CLIENT_BY_USER_USE_CUSTOM;
                    $body_text  = EMAILS_CLIENT_BY_USER_TEXT;
                break;
            case 'new_client_self':

Regards;)

Original comment by nicolas....@gmail.com on 25 Mar 2015 at 4:18