PDA

View Full Version : email template


lsabaut
12-07-2006, 11:01 AM
Hello,
Is there a way to change the email template? , I'm thinking of having some html code but can't make it work yet.
Manage page, well this is great, but is there a way...to have the page on the right side or left side ( from admin menu) and not only on top or down the page?
Thank you for your time.

Dave Baker
12-07-2006, 06:27 PM
Hello lsabaut and welcome to our support forum!
Is there a way to change the email template? , I'm thinking of having some html code but can't make it work yet.
Admin Panel » Configuration » Email Templates » choose necassary template and edit code » button "Save Changes"
to have the page on the right side or left side ( from admin menu)
When you create new page: mark "Editor Menu"
Except this method, there aren't accessible methods for display page on the right side or left side.

lsabaut
12-07-2006, 07:14 PM
Thanks for the reply professor,
Concerning the email template, I've seen that code in the body, but I can't have html tag and table ..to customize my answer to my users and to make publicity.

Sergey Ten
12-08-2006, 02:51 PM
Hi, lsabaut!

*** Open your classes/DirMailer.php ***
*** Find code ***


/**
* Send email to recepient
*
* @param str $aEmail recepient email
* @param str $aSubject email subject
* @param str $aBody email body
* @param str $aFrom email FROM
* @param str $aReplyto email for REPLY
*/
function sendEmail($aEmail, $aSubject, $aBody, $aFrom, $aReplyto) {
return mail($aEmail, $aSubject, $aBody, "From: {$aFrom}\r\n"."Reply-To: {$aReplyto}\r\n");
}


*** Replace with ***


/**
* Send email to recepient
*
* @param str $aEmail recepient email
* @param str $aSubject email subject
* @param str $aBody email body
* @param str $aFrom email FROM
* @param str $aReplyto email for REPLY
*/
function sendEmail($aEmail, $aSubject, $aBody, $aFrom, $aReplyto) {
return mail($aEmail, $aSubject, $aBody, "Content-type: text/html;\r\nFrom: {$aFrom}\r\n"."Reply-To: {$aReplyto}\r\n");
}


*** Save change ***

lsabaut
12-09-2006, 09:20 AM
Sergey, Great thank you, work perfect!

Sergey Ten
12-10-2006, 03:14 PM
You are welcome lsabaut!