Open jjn1056 opened 5 years ago
ok so wow can of worms :). I'l going to try and summarize all the crazy around this and see if there's a useful doc patch to prevent people from wasting 3 days like I just did
@jjn1056 What did you find out? Is bcc not possible here? It's also doing nothing for me.
@srchulo yeah BCC isn't really a header its more like Advice. It would probably be better if it wasn't even in the API. I couldn't come up with a good workaround.
@jjn1056 thanks! I just ended up sending a separate email.
I just ran into this and the method from https://github.com/rjbs/Email-Stuffer/issues/17#issuecomment-286933078 seems to work in my tests so far. Any address in the to, cc, bcc field needs to be duplicated in the send()
.
Email::Stuffer->from('cpan@ali.as')
->to('santa@northpole.org')
->bcc('bunbun@sluggy.com')
->text_body('hi!')
->send({ to => ['santa@northpole.org', 'bunbun@sluggy.com'] });
It's not DRY, but it works 🤷
Hi,
I spent a day trying to figure out why ->bcc didn't send anything and I finally came across https://github.com/rjbs/email-sender/wiki/Bcc which explained it. I'd like to propose a patch but not sure if you just want a documentation patch saying 'bcc does nothing, see this link for why' OR if you think that given Email::Stuffer is supposed to be simple and do the right thing maybe we should have it 'just work'? Thoughts?