rjbs / Email-Stuffer

for sending stuff through email
7 stars 22 forks source link

bcc method does nothing of value #51

Open jjn1056 opened 5 years ago

jjn1056 commented 5 years ago

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?

jjn1056 commented 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

srchulo commented 4 years ago

@jjn1056 What did you find out? Is bcc not possible here? It's also doing nothing for me.

jjn1056 commented 4 years ago

@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.

srchulo commented 4 years ago

@jjn1056 thanks! I just ended up sending a separate email.

gRegorLove commented 1 year ago

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 🤷