On 27.9.2005, at 0.22, Amaia wrote:
> Thanks for your response but i already did and didn''t find how to
> make a
> simple feedback form with ActionMailer.
What exactly tripped you from using ActionMailer? Have you read
"Howto Send Emails with ActionMailer" [1]? You just have to create a
mailer (script/generate mailer), modify the generated mailer model
and view to your needs and finally, call the deliver method for your
mailer action in the controller that is handling your form. The howto
has an example of all this. It uses a User object as a parameter for
the mailer method but you can as well pass the params hash to yours.
//jarkko
[1] http://wiki.rubyonrails.org/rails/pages/
HowToSendEmailsWithActionMailer
> I finally did it with Net::SMTP in the controller, if anyone knows a
> better approach please let me know.
> Thanks
> Amaia
>
> Adam Denenberg wrote:
>
>> checkout ActionMailer
>>
>> adam
>> On Sep 23, 2005, at 7:53 AM, Amaia Castro wrote:
>>
>>
>>> Hi,
>>>
>>> I''ve been looking for a while and i don''t find
anything, maybe it''s
>>> obvious but i''m stuck.
>>>
>>> How can i send the contents of a form by email, like in a typical
>>> feedback form where you fill in your name, address and comment
>>> and it
>>> gets sent to the site owner
>>>
>>> thanks in advance,
>>> Amaia
>>> _______________________________________________
>>> Rails mailing list
>>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
>>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>>
>>>
>>>
>>
>> _______________________________________________
>> Rails mailing list
>> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
>> http://lists.rubyonrails.org/mailman/listinfo/rails
>>
> _______________________________________________
> Rails mailing list
> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
> http://lists.rubyonrails.org/mailman/listinfo/rails
>
>
--
Jarkko Laine
http://jlaine.net
http://odesign.fi
_______________________________________________
Rails mailing list
Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org
http://lists.rubyonrails.org/mailman/listinfo/rails