lib/logstash/outputs/email.rb in logstash-output-email-0.1.0 vs lib/logstash/outputs/email.rb in logstash-output-email-0.1.1

- old
+ new

@@ -10,21 +10,21 @@ milestone 1 # This setting is deprecated in favor of Logstash's "conditionals" feature # If you were using this setting previously, please use conditionals instead. # - # If you need help converting your older 'match' setting to a conditional, + # If you need help converting your older `match` setting to a conditional, # I welcome you to join the #logstash irc channel on freenode or to email # the logstash-users@googlegroups.com mailling list and ask for help! :) config :match, :validate => :hash, :deprecated => true # The fully-qualified email address to send the email to. # # This field also accepts a comma-separated string of addresses, for example: - # "me@host.com, you@host.com" + # `"me@host.com, you@host.com"` # - # You can also use dynamic fields from the event with the %{fieldname} syntax. + # You can also use dynamic fields from the event with the `%{fieldname}` syntax. config :to, :validate => :string, :required => true # The fully-qualified email address for the From: field in the email. config :from, :validate => :string, :default => "logstash.alert@nowhere.com" @@ -32,25 +32,25 @@ config :replyto, :validate => :string # The fully-qualified email address(es) to include as cc: address(es). # # This field also accepts a comma-separated string of addresses, for example: - # "me@host.com, you@host.com" + # `"me@host.com, you@host.com"` config :cc, :validate => :string # How Logstash should send the email, either via SMTP or by invoking sendmail. config :via, :validate => :string, :default => "smtp" # Specify the options to use: # - # Via SMTP: smtpIporHost, port, domain, userName, password, authenticationType, starttls + # Via SMTP: `smtpIporHost`, `port`, `domain`, `userName`, `password`, `authenticationType`, `starttls` # - # Via sendmail: location, arguments + # Via sendmail: `location`, `arguments` # # If you do not specify any `options`, you will get the following equivalent code set in # every new mail object: - # + # [source,ruby] # Mail.defaults do # delivery_method :smtp, { :smtpIporHost => "localhost", # :port => 25, # :domain => 'localhost.localdomain', # :userName => nil, @@ -68,18 +68,18 @@ # Mail.retriever_method.new #=> Mail::POP3 instance # end # # Each mail object inherits the defaults set in Mail.delivery_method. However, on # a per email basis, you can override the method: - # + # [source,ruby] # mail.delivery_method :sendmail # # Or you can override the method and pass in settings: - # + # [source,ruby] # mail.delivery_method :sendmail, { :address => 'some.host' } # # You can also just modify the settings: - # + # [source,ruby] # mail.delivery_settings = { :address => 'some.host' } # # The hash you supply is just merged against the defaults with "merge!" and the result # assigned to the mail object. For instance, the above example will change only the # `:address` value of the global `smtp_settings` to be 'some.host', retaining all other values.