# Help with sending email form

**URL:** <https://www.ruby-forum.com/t/help-with-sending-email-form/54208>\
**Category:** Rails\
**Created:** [December 21, 2005, 7:57pm UTC](https://www.ruby-forum.com/t/help-with-sending-email-form/54208 "2005-12-21T19:57:11Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![frank](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/f/3d9bf3/32.png) [@frank](https://www.ruby-forum.com/u/frank)\
**Post date:** [December 21, 2005, 7:57pm UTC](https://www.ruby-forum.com/t/help-with-sending-email-form/54208/1 "2005-12-21T19:57:11Z")

</div>

Hello,

I have an email app running where I can send an email.  
How do I pass form data to my email notifier?

here is my code that is not working.

\<%= start\_form\_tag :action =\> “index” %\>

\<% if @flash[‘notice’] %\>

\<%= @flash['notice'] %\>

\<% end %\>

Please enter your email address:

\<%= text\_field “post”, “email”, :size =\> 20, :value =\> @email,  
:class=\>“form” %\>

\<%= end\_form\_tag %\>

* * *

class IndexController \< ApplicationController

def index

@p = params[:index]

Notifier::deliver\_signup\_thanks(@p)

end

end

* * *

class Notifier \< ActionMailer::Base

def signup\_thanks§

# Email header info MUST be added here

@recipients = “removed\_email\_address@domain.invalid”

@from = “removed\_email\_address@domain.invalid”

@subject = “Thank you for registering with our website”

# Email body substitutions go here

@body = p.email

end

end
