Skip to content

Not possible to set headers on a SendEmailRequest #98

@Mange

Description

@Mange

The SendEmailRequest class accepts a headers: option, but the value provided will always be overwritten with an empty hash. See line 10 below:

def initialize(opts)
@message = opts.delete_if { |field| invalid_field?(field) }
@message[:attachments] = {}
@message[:headers] = {}
end

Is this a typo for ||=?

For now I'll work around it by modifying the returned object directly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions