From 7b774d81d3ef2587479347116caf9ecd7c6ab595 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Wed, 19 Oct 2011 19:07:52 -0700 Subject: [PATCH] Fix spacing on smtpclient doc examples --- lib/em/protocols/smtpclient.rb | 56 +++++++++++++++++----------------- 1 file changed, 28 insertions(+), 28 deletions(-) diff --git a/lib/em/protocols/smtpclient.rb b/lib/em/protocols/smtpclient.rb index 58fca4ceb..8d6612be5 100644 --- a/lib/em/protocols/smtpclient.rb +++ b/lib/em/protocols/smtpclient.rb @@ -31,38 +31,38 @@ module Protocols # Simple SMTP client # # @example - # email = EM::Protocols::SmtpClient.send( - # :domain=>"example.com", - # :host=>'localhost', - # :port=>25, # optional, defaults 25 - # :starttls=>true, # use ssl - # :from=>"sender@example.com", - # :to=> ["to_1@example.com", "to_2@example.com"], - # :header=> {"Subject" => "This is a subject line"}, - # :body=> "This is the body of the email" - # ) - # email.callback{ - # puts 'Email sent!' - # } - # email.errback{ |e| - # puts 'Email failed!' - # } + # email = EM::Protocols::SmtpClient.send( + # :domain=>"example.com", + # :host=>'localhost', + # :port=>25, # optional, defaults 25 + # :starttls=>true, # use ssl + # :from=>"sender@example.com", + # :to=> ["to_1@example.com", "to_2@example.com"], + # :header=> {"Subject" => "This is a subject line"}, + # :body=> "This is the body of the email" + # ) + # email.callback{ + # puts 'Email sent!' + # } + # email.errback{ |e| + # puts 'Email failed!' + # } # # Sending generated emails (using mailfactory) # - # mail = MailFactory.new - # mail.to = 'someone@site.co' - # mail.from = 'me@site.com' - # mail.subject = 'hi!' - # mail.text = 'hello world' - # mail.html = '

hello world

' + # mail = MailFactory.new + # mail.to = 'someone@site.co' + # mail.from = 'me@site.com' + # mail.subject = 'hi!' + # mail.text = 'hello world' + # mail.html = '

hello world

' # - # email = EM::P::SmtpClient.send( - # :domain=>'site.com', - # :from=>mail.from, - # :to=>mail.to, - # :content=>"#{mail.to_s}\r\n.\r\n" - # ) + # email = EM::P::SmtpClient.send( + # :domain=>'site.com', + # :from=>mail.from, + # :to=>mail.to, + # :content=>"#{mail.to_s}\r\n.\r\n" + # ) # class SmtpClient < Connection include EventMachine::Deferrable