Class: SocketLabs::EmailMessage

Inherits:
Object
  • Object
show all
Defined in:
lib/socketlabs.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#bccObject

Returns the value of attribute bcc.



24
25
26
# File 'lib/socketlabs.rb', line 24

def bcc
  @bcc
end

#ccObject

Returns the value of attribute cc.



24
25
26
# File 'lib/socketlabs.rb', line 24

def cc
  @cc
end

#fromObject

Returns the value of attribute from.



24
25
26
# File 'lib/socketlabs.rb', line 24

def from
  @from
end

#headersObject

Returns the value of attribute headers.



24
25
26
# File 'lib/socketlabs.rb', line 24

def headers
  @headers
end

#htmlBodyObject

Returns the value of attribute htmlBody.



24
25
26
# File 'lib/socketlabs.rb', line 24

def htmlBody
  @htmlBody
end

#mailingIdObject

Returns the value of attribute mailingId.



24
25
26
# File 'lib/socketlabs.rb', line 24

def mailingId
  @mailingId
end

#messageIdObject

Returns the value of attribute messageId.



24
25
26
# File 'lib/socketlabs.rb', line 24

def messageId
  @messageId
end

#replyToObject

Returns the value of attribute replyTo.



24
25
26
# File 'lib/socketlabs.rb', line 24

def replyTo
  @replyTo
end

#subjectObject

Returns the value of attribute subject.



24
25
26
# File 'lib/socketlabs.rb', line 24

def subject
  @subject
end

#templateObject

Returns the value of attribute template.



24
25
26
# File 'lib/socketlabs.rb', line 24

def template
  @template
end

#textBodyObject

Returns the value of attribute textBody.



24
25
26
# File 'lib/socketlabs.rb', line 24

def textBody
  @textBody
end

#toObject

Returns the value of attribute to.



24
25
26
# File 'lib/socketlabs.rb', line 24

def to
  @to
end

Instance Method Details

#sendObject



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