bbcooper wrote: > > Hope that helps. The above example also uses ConfigurationService ( > http://www.chenillekit.org/chenillekit-core/configuration.html) to read > properties from file. > > Cheers, > Borut > > 2009/6/18 newtonik <newto...@gmail.com> > >> >> Can anyone give me an example on how to use this >> http://www.chenillekit.org/chenillekit-mail/SmtpService.html mailer . I >> am >> new to Tapestry and I have been trying some of their components. I >> decided >> to try the mailer today but I don't seem to know how to get it to work. I >> don't seem to know how to Inject the Service into my pages. >> >> Can someone point me in the right direction? >> >> How about what people use to mail? Does everyone basically use the Apache >> Commons EMail? >> -- >> View this message in context: >> http://www.nabble.com/ChenilleKit-Mail----How-to-Use--or-Any-Mailer--tp24085676p24085676.html >> Sent from the Tapestry - User mailing list archive at Nabble.com. >> >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > >
Thanks I decided to try yours. I ended up getting as close as I got using one of my previous trial and error. I get this exception when I try to inject the service. Exception constructing service 'EmailService': Error invoking constructor com.team.web.services.EmailServiceImpl(SmtpService, ConfigurationService) (at EmailServiceImpl.java:19) via com.team.web.services.AppModule.bind(ServiceBinder) (at AppModule.java:68) (for service 'EmailService'): Error building service proxy for service 'SimpleSmtpService' (at org.chenillekit.mail.services.impl.SimpleSmtpServiceImpl(Logger, ConfigurationService, Map) (at SimpleSmtpServiceImpl.java:49) via org.chenillekit.mail.ChenilleKitMailModule.bind(ServiceBinder) (at ChenilleKitMailModule.java:28)): Error invoking constructor org.chenillekit.mail.services.impl.SimpleSmtpServiceImpl(Logger, ConfigurationService, Map) (at SimpleSmtpServiceImpl.java:49) via org.chenillekit.mail.ChenilleKitMailModule.bind(ServiceBinder) (at ChenilleKitMailModule.java:28) (for service 'SimpleSmtpService'): 'null' does not exists! Looking at the code, they do a bind by id with bind.bind(SmtpService.class).byId("SimpleSmtpService"). I am not sure where the null can be fixed -- View this message in context: http://www.nabble.com/ChenilleKit-Mail----How-to-Use--or-Any-Mailer--tp24085676p24104038.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org