# Mailer extension problem with redirect

**URL:** <https://www.ruby-forum.com/t/mailer-extension-problem-with-redirect/136590>\
**Category:** Radiant CMS\
**Created:** [May 4, 2008, 3:26am UTC](https://www.ruby-forum.com/t/mailer-extension-problem-with-redirect/136590 "2008-05-04T03:26:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nikos\_Delibaltadaki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e9c0ed/32.png) [@Nikos\_Delibaltadaki](https://www.ruby-forum.com/u/Nikos_Delibaltadaki)\
**Post date:** [May 4, 2008, 3:26am UTC](https://www.ruby-forum.com/t/mailer-extension-problem-with-redirect/136590/1 "2008-05-04T03:26:02Z")

</div>

I installed the mailer extension with radiant 0.6.6.  
(I followed more or less the wiki HOWTO), on my site  
which is hosted in railsplayground with fastcgi.

The extension sends the message properly, however in:

1. Firefox: displays a message “you are being redirected”, with  
“redirected”  
being a link with the redirection page, set in config. The redirection  
doesnt occur automatically but only by pressing the link.
2. IE 7: displays a 500 error page (message, as i already mentioned, is  
being send properly)

is this some common problem due to misconfiguration?

thank you  
Nikos Delibaltadakis

---

<div class="post-metadata">

**Author:** ![Nikos\_Delibaltadaki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e9c0ed/32.png) [@Nikos\_Delibaltadaki](https://www.ruby-forum.com/u/Nikos_Delibaltadaki)\
**Post date:** [May 5, 2008, 10:38pm UTC](https://www.ruby-forum.com/t/mailer-extension-problem-with-redirect/136590/2 "2008-05-05T22:38:24Z")

</div>

Nikos Delibaltadakis schrieb:

> 

Unfortunately I have no time to test the following code with the mailer  
extension but  
I had a similar problem in an extension that I am actualy developing.

Does anyone with this problem in the mailer extension can change the  
line 30 in mailer\_page.rb from

response.redirect(form\_conf[:redirect\_to], :status =\> 302)

to

response.redirect(form\_conf[:redirect\_to], “302 Found”)

and tell whether it works?

---

<div class="post-metadata">

**Author:** ![Nikos\_Delibaltadaki](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/e9c0ed/32.png) [@Nikos\_Delibaltadaki](https://www.ruby-forum.com/u/Nikos_Delibaltadaki)\
**Post date:** [May 5, 2008, 11:01pm UTC](https://www.ruby-forum.com/t/mailer-extension-problem-with-redirect/136590/3 "2008-05-05T23:01:32Z")

</div>

I did exactly this, changed it to  
response.redirect(form\_conf[:redirect\_to], “302”)  
and it worked.

On Mon, May 5, 2008 at 11:36 PM, beyama@alchemy25 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
