Sounds reasonable to me. I would have liked that feature on a couple of occasions.
> On 20 Feb 2018, at 9:54 PM, Martin Grigorov <mgrigo...@apache.org> wrote: > > Hi, > > I think John Steven has a point. > He can use FreeMarker or JSP for his application but he likes Tapestry > better. > Now he needs to generate some HTML that won't be flushed to the web > response but will be sent as a SMTP mail body. > And he prefers to use the same tools/libraries he already has experience > with. No need to add more libraries to the classpath when Tapestry can do > this easily. Apache Commons Email is needed to send the email but something > has to generate the HTML first! > Initially I thought this question should have been asked at users@ mailing > lists but now I think dev@ is better because it is a discussion whether > Tapestry should be improved with such feature or not. > > Martin > > On Tue, Feb 20, 2018 at 2:12 PM, JumpStart < > geoff.callender.jumpst...@gmail.com> wrote: > >> Same here, or use the MailChimp API. >> >>> On 20 Feb 2018, at 8:29 pm, Bob Harner <bobhar...@gmail.com> wrote: >>> >>> You might want to look at https://github.com/uklance/tapestry-offline >> ... >>> but really, email is such a different medium that I have always just used >>> Velocity templates myself. You don't have to put the business logic in >> the >>> template if you don't want to. >>> >>> On Feb 20, 2018 5:20 AM, "Coleman, JohnSteven (Agoda)" < >>> johnsteven.cole...@agoda.com> wrote: >>> >>>> On 2/20/18, 4:35 PM, "Dmitry Gusev" <dmitry.gu...@gmail.com> wrote: >>>> >>>> Email received from outside the company. If in doubt don't click >> links >>>> nor open attachments! >>>> ________________________________ >>>> >>>> Hi, >>>> >>>> I guess your answer is mostly about formatting HTML output using TML >>>> markup? >>>> >>>> Yes exactly. The template rendering technology is great in Tapestry, I >>>> wish it could be abstracted for other applications. I’ve been using >>>> Freemarker and it sucks by comparison just like JSP sucked by blurring >> code >>>> and presentation into a new and unnecessary technology. >>>> >>>> Perhaps the easiest thing would be to run a Tapestry App with an >> embedded >>>> Jetty instance, and just page request the content to copy into the >> emails? >>>> And another advantage is the web page could be linked to itself for a >> click >>>> this link to read mail online option? It wouldn’t surprise me if this >> was >>>> actually faster as well. >>>> >>>> John >>>> >>>> >>>> ________________________________ >>>> This message is confidential and is for the sole use of the intended >>>> recipient(s). It may also be privileged or otherwise protected by >> copyright >>>> or other legal rules. If you have received it by mistake please let us >> know >>>> by reply email and delete it from your system. It is prohibited to copy >>>> this message or disclose its content to anyone. Any confidentiality or >>>> privilege is not waived or lost by any mistaken delivery or unauthorized >>>> disclosure of the message. All messages sent to and from Agoda may be >>>> monitored to ensure compliance with company policies, to protect the >>>> company's interests and to remove potential malware. Electronic messages >>>> may be intercepted, amended, lost or deleted, or contain viruses. >>>> >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: dev-h...@tapestry.apache.org >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tapestry.apache.org For additional commands, e-mail: dev-h...@tapestry.apache.org