wupee icon indicating copy to clipboard operation
wupee copied to clipboard

allow multiple header values in Wupee

Open sairam opened this issue 8 years ago • 2 comments

Hi,

I am trying to send multiple header values. In a regular actionMailer I can use

headers['X-Header-Tag'] = ['tag1']
headers['X-Header-Tag'] = ['tag2']

Since wupee is doing a merge of headers as a hash, this is not possible.

Mail::Header can be passed as an object from wupee, but there the serialization is not allowing that.

also, the mailer method is expecting a hash https://github.com/sleede/wupee/blob/master/app/mailers/wupee/notifications_mailer.rb#L23

sairam avatar Apr 26 '17 10:04 sairam

Hi,

thanks for the report! you're right, any idea to solve this problem ? I'm not having much time at the moment.

thanks!

nflorentin avatar Apr 26 '17 12:04 nflorentin

I passed in a hash in the header and modified it in an after_action method.

I will check and try to send in a PR over the weekend.

sairam avatar Apr 26 '17 15:04 sairam