FileDocCategorySizeDatePackage
EmailRule.javaAPI DocExample1454Wed May 18 09:39:04 BST 2005com.discursive.jccook.xml.bean

EmailRule

public class EmailRule extends org.apache.commons.digester.Rule

Fields Summary
private String
to
private String
from
Constructors Summary
public EmailRule()

 super(); 
Methods Summary
public voidbegin(org.xml.sax.Attributes attributes)

		to = attributes.getValue( "to" );
		from = attributes.getValue( "from" );
	
public voidend()

		Message message = (Message) digester.getRoot();
		
		SMTPClient client = new SMTPClient();
		client.connect("www.discursive.com");
		client.sendSimpleMessage(from, to, message.getText() );