[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Notice: in file [ROOT]/includes/session.php on line 2208: Array to string conversion
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4688: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4690: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4691: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 4692: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions.php:3823)
Poco Forums • View topic - how to merge template with custom html

how to merge template with custom html

Help and advice on using PocoMail

Moderators: Eric, Tomas, robin

how to merge template with custom html

Postby Tomas » Tue Jan 15, 2008 12:43 am

How-to : combining custom html created outside of Pocomail, with Pocomail styled template.
Also shows how to encoded image in the template, and how to make clickable image (which can't be made directly in Pocomail's styled editor).

1. This is a basic styled empty template created by Pocomail or Barca:

Code: Select all
%account%:
%encoded%:
%html%
%body%
<html><head><meta name="Generator" content="PSI HTML/CSS Generator"/>
<style type="text/css"><!--
body{font-family:'Microsoft Sans Serif';font-size:10pt;font-color:'#000000';}
LI{display:list-item;margin:0.00in;}
p{display:block;margin:0.00in;}
--></style>
</head><BODY ><div>&nbsp;</div>
</BODY></html>


2. Add your account name (as listed in accounts list, from menu Tools > Accounts Setup) to first line. Add full path to the image file (if any) to be encoded to second line.

3. Say your html is something like this
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
  <title></title>
</head>
<body>
<a href="http://www.pocosystems.com"><img src="H:\Program Files\Barca2\Emoticons\02.gif"></a><br>
</body>
</html>


4. Combined html with template, including account name change and path to encoded image, shall result in this:

Code: Select all
%account%:MyAccount
%encoded%:H:\Program Files\Barca2\Emoticons\02.gif
%html%
%body%
<html><head><meta name="Generator" content="PSI HTML/CSS Generator"/>
<style type="text/css"><!--
body{font-family:'Microsoft Sans Serif';font-size:10pt;font-color:'#000000';}
LI{display:list-item;margin:0.00in;}
p{display:block;margin:0.00in;}
--></style>
</head><BODY >
<div>

<a href="http://www.pocosystems.com"><img src="H:\Program Files\Barca2\Emoticons\02.gif"></a><br>

</div>
</BODY></html>


Save this in place of the original template file you created, or create a new template file manually in Templates directory in your Barca or Pocomail installation.

It's short but hopefully helpful.
Tomas
Tomas
Pillar of the Community
 
Posts: 1418
Joined: Sun Jul 25, 2004 1:34 am

Return to PocoMail Help and How-To

Who is online

Users browsing this forum: No registered users and 2 guests

cron