Skip to content

Latest commit

 

History

History
36 lines (30 loc) · 2.16 KB

UpdateSmtpTemplate.md

File metadata and controls

36 lines (30 loc) · 2.16 KB

Brevo::UpdateSmtpTemplate

Properties

Name Type Description Notes
tag String Tag of the template [optional]
sender UpdateSmtpTemplateSender [optional]
template_name String Name of the template [optional]
html_content String Required if htmlUrl is empty. If the template is designed using Drag & Drop editor via HTML content, then the design page will not have Drag & Drop editor access for that template. Body of the message (HTML must have more than 10 characters) [optional]
html_url String Required if htmlContent is empty. URL to the body of the email (HTML) [optional]
subject String Subject of the email [optional]
reply_to String Email on which campaign recipients will be able to reply to [optional]
to_field String To personalize the To Field. If you want to include the first name and last name of your recipient, add {FNAME} {LNAME}. These contact attributes must already exist in your Brevo account. If input parameter params used please use {{contact.FNAME}} {{contact.LNAME}} for personalization [optional]
attachment_url String Absolute url of the attachment (no local file). Extensions allowed: #### xlsx, xls, ods, docx, docm, doc, csv, pdf, txt, gif, jpg, jpeg, png, tif, tiff, rtf, bmp, cgm, css, shtml, html, htm, zip, xml, ppt, pptx, tar, ez, ics, mobi, msg, pub and eps [optional]
is_active Boolean Status of the template. isActive = false means template is inactive, isActive = true means template is active [optional]

Example

require 'brevo'

instance = Brevo::UpdateSmtpTemplate.new(
  tag: OrderConfirmation,
  sender: null,
  template_name: Order Confirmation - EN,
  html_content: The order n°xxxxx has been confirmed. Thanks for your purchase,
  html_url: https://html.domain.com,
  subject: Thanks for your purchase !,
  reply_to: support@myshop.com,
  to_field: {FNAME} {LNAME},
  attachment_url: https://attachment.domain.com,
  is_active: true
)