You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Mike Shoemaker <mi...@shoesobjects.com> on 2010/07/06 20:17:12 UTC

Send Email Upon Form Submit

I am writing an app that contains a feedback form that I want to send
to management. I don't really care if I defer this to a cgi that I
call from tapestry form or code the sending the email from tapestry.
Any input would be appreciated.

Mike
Sent from my iPhone

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Send Email Upon Form Submit

Posted by Dmitry Gusev <dm...@gmail.com>.
Here's how I'm senging emails from feedback page on GAE:

http://github.com/dmitrygusev/ping-service/blob/master/ping-service/war/Feedback.tml
http://github.com/dmitrygusev/ping-service/blob/master/ping-service/src/dmitrygusev/ping/pages/Feedback.java


On Tue, Jul 6, 2010 at 22:17, Mike Shoemaker <mi...@shoesobjects.com> wrote:

> I am writing an app that contains a feedback form that I want to send
> to management. I don't really care if I defer this to a cgi that I
> call from tapestry form or code the sending the email from tapestry.
> Any input would be appreciated.
>
> Mike
> Sent from my iPhone
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>


-- 
Dmitry Gusev

AnjLab Team
http://anjlab.com

Re: Send Email Upon Form Submit

Posted by robnangle <ro...@gmail.com>.
Hi All,

I have written a JavaMail class and it works great.
I then put it into my tapestry project and am getting a null pointer on the
recipient.

I know why I am getting it as i am putting the: 

String[] to = {email} //email is a property and am entering its value in the
tml file

This String[] to is in the on submit from method..

When I enter the email address it works:

String[] to = {"joesmith@gmail.com"}

Any idea's on how to overcome this?






--
View this message in context: http://tapestry.1045711.n5.nabble.com/Send-Email-Upon-Form-Submit-tp2416076p4424818.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Send Email Upon Form Submit

Posted by Mike Shoemaker <mi...@shoesobjects.com>.
Thanks all. I asked in case there was an elegant way to dynamically
loop through form values and style the content. I.e. Built into
tapestry or a component available to leverage.

 Javamail certainly works(actually what I have coded now), thanks
again for your  input.

Mike
Sent from my iPhone

On Jul 6, 2010, at 1:38 PM, Norman Franke <no...@myasd.com> wrote:

> On Jul 6, 2010, at 2:29 PM, Thiago H. de Paula Figueiredo wrote:
>
>> On Tue, 06 Jul 2010 15:17:12 -0300, Mike Shoemaker <mi...@shoesobjects.com> wrote:
>>
>>> I am writing an app that contains a feedback form that I want to send
>>> to management. I don't really care if I defer this to a cgi that I
>>> call from tapestry form or code the sending the email from tapestry.
>>> Any input would be appreciated.
>>
>> Using JavaMail wouldn't solve this problem?
>>
>> --
>> Thiago H. de Paula Figueiredo
>> Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
>> Owner, Ars Machina Tecnologia da Informação Ltda.
>> http://www.arsmachina.com.br
>
> I use JavaMail from both Tapestry 4 and Tapestry 5 and it works great in both places.
>
> Norman Franke
> Answering Service for Directors, Inc.
> www.myasd.com
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Send Email Upon Form Submit

Posted by Norman Franke <no...@myasd.com>.
On Jul 6, 2010, at 2:29 PM, Thiago H. de Paula Figueiredo wrote:

> On Tue, 06 Jul 2010 15:17:12 -0300, Mike Shoemaker <mike@shoesobjects.com 
> > wrote:
>
>> I am writing an app that contains a feedback form that I want to send
>> to management. I don't really care if I defer this to a cgi that I
>> call from tapestry form or code the sending the email from tapestry.
>> Any input would be appreciated.
>
> Using JavaMail wouldn't solve this problem?
>
> -- 
> Thiago H. de Paula Figueiredo
> Independent Java, Apache Tapestry 5 and Hibernate consultant,  
> developer, and instructor
> Owner, Ars Machina Tecnologia da Informação Ltda.
> http://www.arsmachina.com.br

I use JavaMail from both Tapestry 4 and Tapestry 5 and it works great  
in both places.

Norman Franke
Answering Service for Directors, Inc.
www.myasd.com


Re: Send Email Upon Form Submit

Posted by "Thiago H. de Paula Figueiredo" <th...@gmail.com>.
On Tue, 06 Jul 2010 15:17:12 -0300, Mike Shoemaker <mi...@shoesobjects.com>  
wrote:

> I am writing an app that contains a feedback form that I want to send
> to management. I don't really care if I defer this to a cgi that I
> call from tapestry form or code the sending the email from tapestry.
> Any input would be appreciated.

Using JavaMail wouldn't solve this problem?

-- 
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer,  
and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: Send Email Upon Form Submit

Posted by robnangle <ro...@gmail.com>.
Got it working there wasn't setting the text correctly..

--
View this message in context: http://tapestry.1045711.n5.nabble.com/Send-Email-Upon-Form-Submit-tp2416076p4425305.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org