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)
<[email protected]>"

  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/.

-- 
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/rubyonrails-talk/253a0a820b4a99e29cdc4241eb48cdaf%40ruby-forum.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to