Re: [Wicket-user] Sending Emails Via Wicket?
If you don't follow the standalone Velocity approach and want to reuse your Wicket components: Processing a Wicket page and sending the result to a buffer can be achieved through StringRequestTarget, thus allowing you to use the buffer contents for sending email. See RequestCycle.setRequestTarget() -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Sending Emails Via Wicket?
I DID search in the forums, and couldn't find reference to sending emails from within the framework. I did find a post where someone mentioned writing there own class for doing this. Does that mean there isn't any built-in classes that handle sending of emails from within Wicket? If not, can someone provide a solution or example of how I might accomplish this? I am a newbie to Wicket, and even a little to Java in general, so any help or reference points would be very much appreciated. Specifically, I need to send an email from within Wicket, where the email contains some dynamic data I would insert before sending. Thanks! -- View this message in context: http://www.nabble.com/Sending-Emails-Via-Wicket--tf3639601.html#a10164083 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sending Emails Via Wicket?
For the actual sending, you need to use Java's normal mail API (http://java.sun.com/products/javamail/) or e.g. Spring's mail module. If you want to create emails based on templates with some variable substibution, I'd recommend you use e.g. Velocity for that. Eelco I DID search in the forums, and couldn't find reference to sending emails from within the framework. I did find a post where someone mentioned writing there own class for doing this. Does that mean there isn't any built-in classes that handle sending of emails from within Wicket? If not, can someone provide a solution or example of how I might accomplish this? I am a newbie to Wicket, and even a little to Java in general, so any help or reference points would be very much appreciated. Specifically, I need to send an email from within Wicket, where the email contains some dynamic data I would insert before sending. Thanks! -- View this message in context: http://www.nabble.com/Sending-Emails-Via-Wicket--tf3639601.html#a10164083 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sending Emails Via Wicket?
I understand. I'm using the wicket-contrib-velocity package for some page generation, but I am unsure how I would generate a template /just/ for an email. Would you have an example of that? Or be able to point me to a tutorial, etc.? Much appreciated. Eelco Hillenius wrote: For the actual sending, you need to use Java's normal mail API (http://java.sun.com/products/javamail/) or e.g. Spring's mail module. If you want to create emails based on templates with some variable substibution, I'd recommend you use e.g. Velocity for that. Eelco I DID search in the forums, and couldn't find reference to sending emails from within the framework. I did find a post where someone mentioned writing there own class for doing this. Does that mean there isn't any built-in classes that handle sending of emails from within Wicket? If not, can someone provide a solution or example of how I might accomplish this? I am a newbie to Wicket, and even a little to Java in general, so any help or reference points would be very much appreciated. Specifically, I need to send an email from within Wicket, where the email contains some dynamic data I would insert before sending. Thanks! -- View this message in context: http://www.nabble.com/Sending-Emails-Via-Wicket--tf3639601.html#a10164083 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Sending-Emails-Via-Wicket--tf3639601.html#a10164511 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sending Emails Via Wicket?
This is not a particularly beautiful, finished, or even properly-indented (not sure how that happened) implementation but it does manage to send me text emails with templated contents including URLs going back into Wicket: http://databinder.net/wsvn/Databinder/typeturner/trunk/src/main/java/com/typeturner/service/Notify.java?op=file (The mail() method only. You probably don't need to ping Technorati!) Nathan fattymelt wrote: I understand. I'm using the wicket-contrib-velocity package for some page generation, but I am unsure how I would generate a template /just/ for an email. Would you have an example of that? Or be able to point me to a tutorial, etc.? Much appreciated. Eelco Hillenius wrote: For the actual sending, you need to use Java's normal mail API (http://java.sun.com/products/javamail/) or e.g. Spring's mail module. If you want to create emails based on templates with some variable substibution, I'd recommend you use e.g. Velocity for that. Eelco I DID search in the forums, and couldn't find reference to sending emails from within the framework. I did find a post where someone mentioned writing there own class for doing this. Does that mean there isn't any built-in classes that handle sending of emails from within Wicket? If not, can someone provide a solution or example of how I might accomplish this? I am a newbie to Wicket, and even a little to Java in general, so any help or reference points would be very much appreciated. Specifically, I need to send an email from within Wicket, where the email contains some dynamic data I would insert before sending. Thanks! - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Sending Emails Via Wicket?
This should get you started: http://www.theserverside.com/tt/blogs/showblog.tss?id=SpringVelocityEmail - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user