Class: SocketLabs::EmailMessage
- Inherits:
-
Object
- Object
- SocketLabs::EmailMessage
- Defined in:
- lib/socketlabs.rb
Instance Attribute Summary collapse
-
#bcc ⇒ Object
Returns the value of attribute bcc.
-
#cc ⇒ Object
Returns the value of attribute cc.
-
#from ⇒ Object
Returns the value of attribute from.
-
#headers ⇒ Object
Returns the value of attribute headers.
-
#htmlBody ⇒ Object
Returns the value of attribute htmlBody.
-
#mailingId ⇒ Object
Returns the value of attribute mailingId.
-
#messageId ⇒ Object
Returns the value of attribute messageId.
-
#replyTo ⇒ Object
Returns the value of attribute replyTo.
-
#subject ⇒ Object
Returns the value of attribute subject.
-
#template ⇒ Object
Returns the value of attribute template.
-
#textBody ⇒ Object
Returns the value of attribute textBody.
-
#to ⇒ Object
Returns the value of attribute to.
Instance Method Summary collapse
Instance Attribute Details
#bcc ⇒ Object
Returns the value of attribute bcc.
24 25 26 |
# File 'lib/socketlabs.rb', line 24 def bcc @bcc end |
#cc ⇒ Object
Returns the value of attribute cc.
24 25 26 |
# File 'lib/socketlabs.rb', line 24 def cc @cc end |
#from ⇒ Object
Returns the value of attribute from.
24 25 26 |
# File 'lib/socketlabs.rb', line 24 def from @from end |
#headers ⇒ Object
Returns the value of attribute headers.
24 25 26 |
# File 'lib/socketlabs.rb', line 24 def headers @headers end |
#htmlBody ⇒ Object
Returns the value of attribute htmlBody.
24 25 26 |
# File 'lib/socketlabs.rb', line 24 def htmlBody @htmlBody end |
#mailingId ⇒ Object
Returns the value of attribute mailingId.
24 25 26 |
# File 'lib/socketlabs.rb', line 24 def mailingId @mailingId end |
#messageId ⇒ Object
Returns the value of attribute messageId.
24 25 26 |
# File 'lib/socketlabs.rb', line 24 def @messageId end |
#replyTo ⇒ Object
Returns the value of attribute replyTo.
24 25 26 |
# File 'lib/socketlabs.rb', line 24 def replyTo @replyTo end |
#subject ⇒ Object
Returns the value of attribute subject.
24 25 26 |
# File 'lib/socketlabs.rb', line 24 def subject @subject end |
#template ⇒ Object
Returns the value of attribute template.
24 25 26 |
# File 'lib/socketlabs.rb', line 24 def template @template end |
#textBody ⇒ Object
Returns the value of attribute textBody.
24 25 26 |
# File 'lib/socketlabs.rb', line 24 def textBody @textBody end |
#to ⇒ Object
Returns the value of attribute to.
24 25 26 |
# File 'lib/socketlabs.rb', line 24 def to @to end |
Instance Method Details
#send ⇒ Object
26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/socketlabs.rb', line 26 def send msg = Hash.new msg['From']=from msg['To']=to msg['Cc']=cc msg['Bcc']=bcc msg['Subject']=subject msg['Template']=template msg['TextBody']=textBody msg['HtmlBody']=htmlBody msg['ReplyTo']=replyTo msg['Headers'] = headers SocketLabs::SendRawHashMessage(msg); end |