Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bcc method does nothing of value #51

Open
jjn1056 opened this issue Aug 6, 2019 · 5 comments
Open

bcc method does nothing of value #51

jjn1056 opened this issue Aug 6, 2019 · 5 comments

Comments

@jjn1056
Copy link
Contributor

jjn1056 commented Aug 6, 2019

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
Copy link
Contributor Author

jjn1056 commented Aug 9, 2019

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
Copy link

srchulo commented Feb 6, 2020

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

@jjn1056
Copy link
Contributor Author

jjn1056 commented Feb 13, 2020

@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
Copy link

srchulo commented Feb 13, 2020

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

@gRegorLove
Copy link

I just ran into this and the method from #17 (comment) 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 🤷

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants