```ruby
require 'mandrill'

class BaseMandrillMailer < ActionMailer::Base
  default(
    from: "hello@example.com",
    reply_to: "hello@example.com"
  )

  private

  def send_mail(email, subject, body)
    mail(to: email, subject: subject, body: body, content_type: "text/html")
  end

  def mandrill_template(template_name, attributes)
    mandrill = Mandrill::API.new(ENV["SMTP_PASSWORD"])

    merge_vars = attributes.map do |key, value|
      { name: key, content: value }
    end

    mandrill.templates.render(template_name, [], merge_vars)["html"]
  end
end```

Set send email as neighbor email from
user
```ruby
require 'mandrill'

class BaseMandrillMailer < ActionMailer::Base
  default(
    from: "neighbor@nghborly.com",
    reply_to: "noreply@nghborly.com"
  )

  private

  def send_mail(email, subject, body)
    mail(to: email, subject: subject, body: body, content_type: "text/html")
  end

  def mandrill_template(template_name, attributes)
    mandrill = Mandrill::API.new(ENV["SMTP_PASSWORD"])

    merge_vars = attributes.map do |key, value|
      { name: key, content: value }
    end

    mandrill.templates.render(template_name, [], merge_vars)["html"]
  end
end```
assistant