Skip to content

Commit 322a2c4

Browse files
zaidakramdrujensen
authored andcommitted
Removed :header from destination_field + Fixed readme example with custom headers (#26)
1 parent 79b0a3a commit 322a2c4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class MultipleRecipientMailer < Quartz::Composer
6060
address email: "info@amberframework.org", name: "Amber"
6161
end
6262
63-
def initialize(to_emails : Array(String), cc_emails = [] of String, bcc_emails = [] of String, headers = [] of Hash(String, String))
63+
def initialize(to_emails : Array(String), cc_emails = [] of String, bcc_emails = [] of String, headers = {} of String => String)
6464
to_emails.each do |email|
6565
to email
6666
end

src/quartz_mailer/message.cr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ class Quartz::Message
3232
def from(@_from : Address)
3333
end
3434

35-
{% for destination_field in [:to, :cc, :bcc, :header] %}
35+
{% for destination_field in [:to, :cc, :bcc] %}
3636
{% destination_field = destination_field.id %}
3737

3838
def {{ destination_field }}(email : String) : Nil

0 commit comments

Comments
 (0)