Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix spacing on smtpclient doc examples

  • Loading branch information...
commit 7b774d81d3ef2587479347116caf9ecd7c6ab595 1 parent 07fc8c7
@tmm1 tmm1 authored
Showing with 28 additions and 28 deletions.
  1. +28 −28 lib/em/protocols/smtpclient.rb
View
56 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 = '<h1>hello world</h1>'
+ # mail = MailFactory.new
+ # mail.to = 'someone@site.co'
+ # mail.from = 'me@site.com'
+ # mail.subject = 'hi!'
+ # mail.text = 'hello world'
+ # mail.html = '<h1>hello world</h1>'
#
- # 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
Please sign in to comment.
Something went wrong with that request. Please try again.