mfussenegger / easymail

A module that makes sending (valid) emails from python a little bit easier.
MIT License
6 stars 2 forks source link

Unclear on how to add CC or BCC? #2

Open bschollnick opened 3 years ago

bschollnick commented 3 years ago

I'm evaluating easymail to replace an older smtp wrapper library that I've been using...
The only real issue I see is that I'm unclear on how to pass in CC or BCC's into the wrapper?

Could you clarify how CC / BCC support should work?

As far as I can see, self.cc / self.bcc are initialized, but I do not see any mechanism to add / remove to those. Am I missing something?

mfussenegger commented 3 years ago

Both self.cc and self.bcc are lists, so you could use cc.append(address)

But I'm not sure if they are correctly included in the email headers later. It's been a while since I've had a use for this library myself.

Would be happy to merge any contributions