Method: Infusionsoft::Client::Email#email_add

Defined in:
lib/infusionsoft/client/email.rb

#email_add(title, categories, from, to, cc, bcc, subject, text_body, html_body, content_type, merge_context) ⇒ Object

Create a new email template that can be used for future emails

Parameters:

  • title (String)
  • categories (String)

    a comma separated list of the categories you want this template in Infusionsoft

  • from (String)

    the from address format use is ‘FirstName LastName <[email protected]>’

  • to (String)

    the email address this template is sent to

  • cc (String)

    a comma separated list of cc email addresses

  • bcc (String)

    a comma separated list of bcc email addresses

  • subject (String)
  • text_body (String)
  • html_body (String)
  • content_type (String)

    can be Text, HTML, Multipart

  • merge_context (String)

    can be Contact, ServiceCall, Opportunity, CreditCard



22
23
24
25
26
# File 'lib/infusionsoft/client/email.rb', line 22

def email_add(title, categories, from, to, cc, bcc, subject, text_body, html_body,
              content_type, merge_context)
  response = xmlrpc('APIEmailService.addEmailTemplate', title, categories, from, to,
                 cc, bcc, subject, text_body, html_body, content_type, merge_context)
end