Class: Mailtrap::Mail::FromTemplate Deprecated

Inherits:
Base
  • Object
show all
Defined in:
lib/mailtrap/mail/from_template.rb

Overview

Deprecated.

Use Mailtrap::Mail::Base

Instance Attribute Summary

Attributes inherited from Base

#attachments, #bcc, #category, #cc, #custom_variables, #from, #headers, #html, #reply_to, #subject, #template_uuid, #template_variables, #text, #to

Instance Method Summary collapse

Methods inherited from Base

#add_attachment, #as_json, #presence, #to_json

Constructor Details

#initialize(from: nil, to: [], reply_to: nil, cc: [], bcc: [], attachments: [], headers: {}, custom_variables: {}, template_uuid: nil, template_variables: {}) ⇒ FromTemplate

rubocop:disable Metrics/ParameterLists



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/mailtrap/mail/from_template.rb', line 7

def initialize( # rubocop:disable Metrics/ParameterLists
  from: nil,
  to: [],
  reply_to: nil,
  cc: [],
  bcc: [],
  attachments: [],
  headers: {},
  custom_variables: {},
  template_uuid: nil,
  template_variables: {}
)
  super
end