app/mailers/contact_us_mailer.rb
# The "Contact Us" form contains a Zip Code field as a
# honeypot for spam bots.  If that field is filled in,
# we suspect this email might be a spam message and flag it
# with a special subject header.
#
# @param [Boolean] spam
# @return [String]
The "Contact Us" form contains a Zip Code field as a
honeypot for spam bots.  If that field is filled in,
we suspect this email might be a spam message and flag it
with a special subject header.
The " Contact Us " form contains a Zip Code field as a honeypot for spam bots . If that field is filled in we suspect this email might be a spam message and flag it with a special subject header .
def subject_header(spam: false)
    header = Rails.env.production? ? "ADRL" : "ADRL Demo"
    spam_marker = spam ? " SPAMBOT?" : ""
    "[#{header}#{spam_marker}] "
  end
def subject_header ( spam : false ) header = Rails . env . production? ? "ADRL" : "ADRL Demo" spam_marker = spam ? " SPAMBOT?" : "" "[#{header}#{spam_marker}] " end
The "Contact Us" form contains a Zip Code field as a
honeypot for spam bots.
The " Contact Us " form contains a Zip Code field as a honeypot for spam bots .
None
String
spam
None