how to write a code to stop mail sending when a new blog post is created
to the users.
app/mailers/blog mailer :
class BlogMailer < ActionMailer::Base
default from: " Impact Institute (alert)
<
no-r...@impactinstitute.org>"
def new_post_alert(follower, post)
@follower, @post = follower, post
mail(:to => "#{
follower.name} <#{follower.email}>", :subject => "New
Blog entry at
impactinstitute.org: #{post.title}")
end
end
i have reasearch mailer file and also resource mailer.i only want above
functionality to stop mails to the users when new post is created plz
help.
--
Posted via
http://www.ruby-forum.com/.