I added postmark to my Ruby On rails app. I followed the steps from the page https://devcenter.heroku.com/articles/postmark#sending-emails-in-ruby-on-rails-3-x . Now I need to add the following code:
class SuperMailer < ActionMailer::Base
def email
from "test@domain.com"
subject "Hello"
recipients "myemail@domain.com"
tag "big-bang" end
end
However, I do not know where to add this class, and how to use it. I Do I add it in the application.rb file in the module of my app?
And how do I use this class to send the email on after submit (i.e. when someone presses Submit)? I wrote the form with the submit button in an html file in my static_pages under app > views Do I do the following?
<form name="contactform" method="post" > ...