lib/smail.rb in s_mail-0.1.1 vs lib/smail.rb in s_mail-0.1.2
- old
+ new
@@ -1,15 +1,24 @@
require 'smail/version'
+require 'mail'
+require 'base64'
+require 'socket'
module Smail
@@options = {}
@@override_options = {}
@@subject_prefix = false
@@append_inputs = false
# Default options can be set so that they don't have to be repeated.
#
-# Smail.options = { :from => 'noreply@example.com', :via => :smtp, :via_options => { :host => 'smtp.yourserver.com' } }
+# Smail.options = {
+# :from => 'noreply@example.com',
+# :via => :smtp,
+# :via_options => {
+# :host => 'smtp.yourserver.com'
+# }
+# }
# Smail.mail(:to => 'foo@bar') # Sends mail to foo@bar from noreply@example.com using smtp
# Smail.mail(:from => 'Smail@example.com', :to => 'foo@bar') # Sends mail to foo@bar from Smail@example.com using smtp
def self.options=(value)
@@options = value
end