ispCP - Board - Support
System Mail TPLs ? - Printable Version

+- ispCP - Board - Support (http://www.isp-control.net/forum)
+-- Forum: ispCP Omega Support Area (/forum-30.html)
+--- Forum: Usage (/forum-34.html)
+--- Thread: System Mail TPLs ? (/thread-1448.html)



System Mail TPLs ? - fulltilt - 10-04-2007 10:51 PM

I would like to modify my Systemmails e.g. if user logged in or changes has been made ...
Where can i modify this - for Header and Text?

Regards


RE: System Mail TPLs ? - BeNe - 10-05-2007 12:07 AM

I mean there was something under /gui/include/admin-functions.php about line 1518 Wink
Code:
....
....
ispCP Log

Server: $default_hostname ($default_base_server_ip)
Version: $VersionH ($Version - $BuildDate)

Message: ----------------[BEGIN]--------------------------

$msg

Message: ----------------[END]----------------------------

AUTO_LOG_MSG;

                $headers = "From: ispCP  Logging Daemon <$admin_email>\n";

                $headers .= "MIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 7bit\n";

                $headers .= "X-Mailer: ispCP $Version Logging Mailer";

                $mail_result = mail($to, $subject, $message, $headers);

                $mail_status = ($mail_result) ? 'OK' : 'NOT OK';

                $log_message = "$admin_login: Logging Daemon Mail To: |$to|, From: |$admin_email|, Status: |$mail_status|!";

                exec_query($sql, "INSERT INTO log (log_time,log_message) VALUES(NOW(), ?)", $log_message, false);
        }
...
...
...

Greez BeNe


RE: System Mail TPLs ? - fulltilt - 10-05-2007 01:12 AM

thanks BeNe,

i have a Problem with Amavis with the breaks > \n"
The System Mails go to virus folder ...

can i remove the \n" in header section?

Regards


BeNe Wrote:I mean there was something under /gui/include/admin-functions.php about line 1518 Wink
Code:
....
....
ispCP Log

Server: $default_hostname ($default_base_server_ip)
Version: $VersionH ($Version - $BuildDate)

Message: ----------------[BEGIN]--------------------------

$msg

Message: ----------------[END]----------------------------

AUTO_LOG_MSG;

                $headers = "From: ispCP  Logging Daemon <$admin_email>\n";

                $headers .= "MIME-Version: 1.0\nContent-Type: text/plain; charset=utf-8\nContent-Transfer-Encoding: 7bit\n";

                $headers .= "X-Mailer: ispCP $Version Logging Mailer";

                $mail_result = mail($to, $subject, $message, $headers);

                $mail_status = ($mail_result) ? 'OK' : 'NOT OK';

                $log_message = "$admin_login: Logging Daemon Mail To: |$to|, From: |$admin_email|, Status: |$mail_status|!";

                exec_query($sql, "INSERT INTO log (log_time,log_message) VALUES(NOW(), ?)", $log_message, false);
        }
...
...
...

Greez BeNe



RE: System Mail TPLs ? - Breaki - 10-05-2007 02:23 AM

i don't know if it works without the \n because the \n indicates to use a new line for the following text... and if all goes right you won't see the escaped char \n (nearly the same like pressing enter on your keyboard --> linefeed)

greetz


RE: System Mail TPLs ? - fulltilt - 10-05-2007 02:51 AM

thanks,

the prob is that amavis also include breaks and there comes a error in headers ... from amavis self (signs in header) :-)
The body text is ok - but for header checks in amavis makes problems.
I mean only the header -did the header need ths breaks?

Breaki Wrote:i don't know if it works without the \n because the \n indicates to use a new line for the following text... and if all goes right you won't see the escaped char \n (nearly the same like pressing enter on your keyboard --> linefeed)

greetz



RE: System Mail TPLs ? - Breaki - 10-05-2007 03:17 AM

if i have enough time i will have a closer look on it, what amavis and ispcp are doing wrong Wink

greetz