Module: Teamlab::MailSignature

Included in:
Mail
Defined in:
lib/teamlab/modules/mail/mail_signature.rb

Overview

Methods for working with mail signatures

Instance Method Summary collapse

Instance Method Details

#get_meail_signature(mailbox_id) ⇒ Object



6
7
8
# File 'lib/teamlab/modules/mail/mail_signature.rb', line 6

def get_meail_signature(mailbox_id)
  @request.get(['signature', mailbox_id.to_s])
end

#update_signature(mailbox_id, html, options = {}) ⇒ Object



10
11
12
# File 'lib/teamlab/modules/mail/mail_signature.rb', line 10

def update_signature(mailbox_id, html, options = {})
  @request.post(['signature', 'update', mailbox_id.to_s], { html: html }.merge(options))
end