Coder Social home page Coder Social logo

add_bcc_recipient about mailio HOT 8 CLOSED

Mask-K avatar Mask-K commented on May 23, 2024
add_bcc_recipient

from mailio.

Comments (8)

karastojko avatar karastojko commented on May 23, 2024

Let me debug it.

from mailio.

karastojko avatar karastojko commented on May 23, 2024

I am not able to reproduce it. Can you please give me the full example with the mangled sensitive data?

from mailio.

Mask-K avatar Mask-K commented on May 23, 2024
  auto msg = std::make_shared<mailio::message>();
  msg->header_codec(mailio::message::header_codec_t::BASE64);
  msg->from(mailio::mail_address("My name", m_config->smtp->email));
  msg->content_transfer_encoding(mailio::mime::content_transfer_encoding_t::QUOTED_PRINTABLE);
  msg->content_type(mailio::message::media_type_t::TEXT, "html", "utf-8");
  msg->add_bcc_recipient(mailio::mail_address("Customer", "[email protected]"));
  msg->add_bcc_recipient(mailio::mail_address("Customer", "[email protected]"));
  msg->add_bcc_recipient(mailio::mail_address("Customer", "[email protected]"));


  msg->subject("New goods in the store!");
  msg->content("");
  m_connection->submit(*msg);

image

from mailio.

karastojko avatar karastojko commented on May 23, 2024

Thanks @Mask-K for the example, I was able to reproduce it.

Can you please try the quick fix and let me know does it work for you?

from mailio.

Mask-K avatar Mask-K commented on May 23, 2024

image
Yep, that works!
But is there a way for each user to see his email in field to whom and not see other users'?

from mailio.

karastojko avatar karastojko commented on May 23, 2024

I think mailio could be changed in that way, but I believe it would be against the specification. I will check for that, also I am not sure whether the undisclosed-recipients is specified.

from mailio.

karastojko avatar karastojko commented on May 23, 2024

The RFC 5322/3.6.3 allows that the Bcc users see their own addresses in the Bcc field (others are hidden of course). The To and Cc recipients remain where they are. Is it acceptable to you?

from mailio.

karastojko avatar karastojko commented on May 23, 2024

Fixed with the PR.

from mailio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.