Current time: 11-27-2024, 07:19 AM Hello There, Guest! (LoginRegister)


Post Reply 
System Mail TPLs ?
Author Message
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #1
System Mail TPLs ?
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
10-04-2007 10:51 PM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: System Mail TPLs ?
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
10-05-2007 12:07 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #3
RE: System Mail TPLs ?
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
10-05-2007 01:12 AM
Find all posts by this user Quote this message in a reply
Breaki Offline
Junior Member
*

Posts: 109
Joined: Sep 2007
Reputation: 5
Post: #4
RE: System Mail TPLs ?
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
10-05-2007 02:23 AM
Visit this user's website Find all posts by this user Quote this message in a reply
fulltilt Offline
Member
***

Posts: 1,225
Joined: Apr 2007
Reputation: 5
Post: #5
RE: System Mail TPLs ?
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
10-05-2007 02:51 AM
Find all posts by this user Quote this message in a reply
Breaki Offline
Junior Member
*

Posts: 109
Joined: Sep 2007
Reputation: 5
Post: #6
RE: System Mail TPLs ?
if i have enough time i will have a closer look on it, what amavis and ispcp are doing wrong Wink

greetz
10-05-2007 03:17 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)