|
#21
|
|||
|
|||
|
Quote:
<html> <head> <STYLE TYPE=\"text/css\"> TD{font-family: Arial; font-size: 10pt;} table { width: 700px; border: table-layout: fixed; } </STYLE> </head> <body style="margin:0"> <table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0"> <tr> <td bgcolor="#ffffff" valign="top"> <table width="750" border="0" cellpadding="0" cellspacing="0" align="center"> <tr><td bgcolor="#ffffff" width="750"> <img src="https://www.google.com/intl/en_com/images/srpr/logo3w.png"></td></tr> <tr><td bgcolor="#ffffff" width="750"> </td></tr> <tr><td bgcolor="#ffffff" width="750">%message</td></tr> </table> </td> </tr> </table> </body> </html> This is a basic table structure to control width and centering. It also includes a logo at the top which I substituted the google logo for. Also notice the use of the "%message" as written in the instructions. This is working well, the only issue I'm having is a broader issue with the multi-part headers being properly recognized. I'm working with the headers now to see if a change is needed to get the emails to show up properly in an outlook. Google mail works, but other web based email clients don't seem to be consistent. -Robert |
|
#22
|
|||
|
|||
|
I download the code, applied the described changes and it was working great with some web based email clients like google mail, but I couldn't seem to get it working with outlook mail clients.
After some trial and error, I realized the Mime_mail() object needed to be initialized with the newline string. Change line #170 of bkonia's patched "class.email.php" old code: $mime = new Mail_mime(); new code: $mime = new Mail_mime($eol); This corrected the problem where my new HTML emails were coming in as unidentifiable text and attachments to outlook. After I changed the code to instantiate $mime with the newline character, it worked great. I'm not sure if PEAR assumes a winows or the osTicket deployment does, but this was required for me on centos. -Robert |
|
#23
|
|||
|
|||
|
Dear All,
I have made the changes to my OSTicket, after following the steps, I am not able to find any section with name HTML in my preferences. appreciate your help on this. Thanks and Best Regards,
|
|
#24
|
|||
|
|||
|
hi fellas,
I applied the mod, created the table field, but whenever i paste something in the html template field and i push save, it says it was successful, but whenever I return, that field is empty, there's no trace of my template in the emails, and the sql field in mysql stays NULL. what am I doing wrong ? :-/ |
|
#25
|
|||
|
|||
|
Quote:
cheers, |
|
#26
|
|||
|
|||
|
Hello,
Is it possible to put a picture of my entreprise in an email template ? Is the client will view this picture ? Thank you in advance. |
|
#27
|
|||
|
|||
|
Very nice mod!!
It works like a charm. Thanks & congrats!! |
|
#28
|
|||
|
|||
|
Quote:
|
|
#29
|
|||
|
|||
|
I answered myself :-)
Unfortunately it was not easy because I have no knowledge of PHP: the solution is as follows: look in the file class.email.php the following code: Code:
$subject=stripslashes(preg_replace("/(\r\n|\r|\n)/s",'', trim($subject)));
$body = stripslashes(preg_replace("/(\r\n|\r)/s", "\n", trim($message)));
Code:
//Inizio codice per convertire url in link
$trova = "((http://|ftp://)[a-zA-Z0-9-_.]+[a-zA-Z0-9/.?&=_@]+)";
$nuovo = "<a href=\"$0\" target=\"_blank\"> $0 </a>";
$body = preg_replace($trova, $nuovo, $body);
//Fine codice per convertire url in link
|
|
#30
|
|||
|
|||
|
Never Mind - Great Mod!
Last edited by jimmyeao; 05-30-2012 at 09:10 AM. |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|