easymail icon indicating copy to clipboard operation
easymail copied to clipboard

Unclear on how to add CC or BCC?

Open bschollnick opened this issue 3 years ago • 1 comments

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?

bschollnick avatar Jan 21 '21 17:01 bschollnick

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

mfussenegger avatar Jan 28 '21 12:01 mfussenegger