[Rails] form action in mail (actionmailer)

Kim Young Hoo m212a at mac.com
Wed Mar 2 21:15:31 GMT 2005


Again : )

I found each mail client has their own method to process 'form action' 
in text/html mail.
For example, Gmail modify hidden input's name with their prefix id 
string.
(ex. <input type="hidden" name="account[something]"> is modified to 
<input  type="hidden" name="120231232account[something]"> )

Surely I can use pattern matching to solve this problem but I think it 
is risky way.
So I will be happy if someone explain know-how about 'form action' in 
html mail.

Thanks for any advance


2005. 03. 03, 오전 5:50, See more glass 작성:

>> 2. so I changed my appoach to plain html likes
>>
>> <form action="http://myhostname/mycontroller/myaction" method="post">
>> blah blah, most hidden type
>> <input type="submit">
>> </form>
>>
>> then, when I click submit from mail client,  Rails identify it as 
>> "get request" not "post request".
>>
>
> I found it worked as I expected (request "post" action) in web browser 
> mail client.
> Actually, I suppose above problem come out only Mail.app (mac).
>
> Is there anyone who explain this case ? : )
>
> Thanks for any advance,
>
> _______________________________________________
> Rails mailing list
> Rails at lists.rubyonrails.org
> http://lists.rubyonrails.org/mailman/listinfo/rails



More information about the Rails mailing list