1 / 11

Template-based Email

Template-based Email. Sean C. Sullivan March 22, 2005 Portland Java Users Group. Agenda. Email templates StringTemplate JavaMail MIME. Using email templates. SMTP server. Java application. Email Template. Email Template. Mail client. StringTemplate.

mikkel
Télécharger la présentation

Template-based Email

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Template-based Email Sean C. Sullivan March 22, 2005 Portland Java Users Group

  2. Agenda • Email templates • StringTemplate • JavaMail • MIME

  3. Using email templates SMTP server Java application Email Template Email Template Mail client

  4. StringTemplate http://www.stringtemplate.org/

  5. StringTemplate 101 <p> Hello $name$ </p>

  6. StringTemplate 101 import org.antlr.stringtemplate.*; StringTemplate t = ... t.setAttribute("name", "Napoleon"); System.out.println(t.toString());

  7. StringTemplate API

  8. StringTemplate API

  9. JavaMail API http://java.sun.com/products/javamail/javadocs/index.html

  10. Demo J2SE 5.0 Thunderbird 1.0 Template StringTemplate 2.1 James 2.2.0

  11. Summary • StringTemplate • JavaMail • MIME

More Related