disable action mailer only to blog posts in site

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-reply@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.

how to write a code to stop mail sending when a new blog post is created

to the users.

app/mailers/blog mailer :

Somewhere in your app will be something calling this mailer - remove it.

Fred

Frederick Cheung wrote in post #1167785: