class Mail::SMTP

def disable_tls

Turn off TLS
def disable_tls
  @tls = false
end

def enable_tls

Turn on TLS
def enable_tls
  @tls = true
end

def helo(value = nil)

default is 'localhost.localdomain'
The helo domain used at the begining of an SMTP conversation,
def helo(value = nil)
  value ? @helo = value : @helo ||= 'localhost.localdomain'
end

def host(value = nil)

This is the host that you will send your SMTP mails to, defaults to 'localhost'
def host(value = nil)
  value ? @host = value : @host ||= 'localhost'
end

def initialize

def initialize
  @user = nil
  @pass = nil
  @tls  = false
end

def pass(value = nil)

Password to use during SMTP authentication
def pass(value = nil)
  value ? @pass = value : @pass
end

def port(value = nil)

This is the port that SMTP email get sent to, default is 25
def port(value = nil)
  value ? @port = value.to_i : @port ||= 25
end

def settings(&block)

def settings(&block)
  if block_given?
    instance_eval(&block)
  end
  self
end

def tls?

TLS Enabled? Default is false
def tls?
  @tls || false
end

def user(value = nil)

The username to use during SMTP authentication
def user(value = nil)
  value ? @user = value : @user
end