LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices

Reply
 
Search this Thread
Old 07-13-2010, 08:58 PM   #1
conesh
LQ Newbie
 
Registered: Aug 2008
Location: Mexico
Distribution: fedora core 9
Posts: 7

Rep: Reputation: 0
Unhappy Include html on a velocity template mail.


Hi everyone.

I hope you can help me with my project.

Here's the story.

Right now we send notification emails using a velocity template (apache and java), the thing is that the notification engine call the Email.vm file to add all the information and variables. This process only attach the information (text) on the .vm file.

We need to send that email on html. The thing is that if we write the html code on the file, when the .vm file is called that email includes the code not the result of the html.

We have tried adding the headers and everything.

The question is:

Is there some way that we can pre-process the html code and include to that email the result?

Or can we tell the .vm file that it should be handle as html? (like php for example <?php ?>, the <html> and </html> tags doesn't work.

Thanks for your help, I hope this post is clear enough.
 
Old 07-15-2010, 08:35 AM   #2
dugan
Senior Member
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 4,788

Rep: Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486Reputation: 1486
There's probably a call to htmlentities or htmlspecialchars somewhere in the template. Both are PHP functions that make HTML code display as code.
 
  


Reply

Tags
template


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
best client side way to include html within html entz Programming 1 09-12-2009 09:56 PM
emacs - html-helper-mode- edit template flebber Programming 3 12-12-2007 10:02 PM
include template in stdafx.h kpachopoulos Programming 0 11-25-2007 04:46 AM
defining an array in html template to be used by php mohtasham1983 Programming 2 01-28-2006 04:23 PM
HTML::Template smalter Programming 0 06-14-2001 10:41 AM


All times are GMT -5. The time now is 09:39 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration