| Customizing the Email Templates |
Now that HWemail is installed and working correctly you may want to customize the templates. There are 3 areas of templates you can customize. The subscribe/unsubscribe notices, the text based email template and the html email templates.
Subscribe/Unsubscribe Notices:
There are five files that make up this category. They are located in
the email directory and can be edited as needed. You can add any of the HAMweather
template variables to them.
| Filename | Discription |
| subscribe.html | The html template displayed in the web browser when a user subscribes to a forecast email. |
| unsubscribe.html | The html template displayed in the web browser when a user unsubscribes to a forecast email. |
| emailerror.html | The html template displayed when a user does not provide the correct informaiton when subscribing to a forecast email. |
| subscribe.txt | The email template used to generate the subscription notice that is emailed when a user subscribes to a forecast email. |
| unsubscribe.txt | The email template used to generate the unsubscribe notice that is emailed when a user unsubscribes to a forecast email. |
Text Based Email Template:
This is the emailtemplate.txt file located in the email directory. WHen somoen signs
up for a text based foreacst email this template is used to generate their foreast and
email it to them.
HTML Based Email Templates:
When a user signs up for a HTML based forecast email, HAMweather
will use the standard templates used when displaying the foreast on the website.
Because of this you technically do not have to bother customizing any special
templates. But if you decide you would like to have seperate templates for email the
best thing to do woudl be to create a new HAMweather user (Read HW Documentation) and
create custom templates for this user. Then in yoru command lin to run the
emailhw2.cgi simplay add "user=xxxx" and the custom templates you created will
be used when outputing the HTML emails.