question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CC and BCC for MIME types

See original GitHub issue

It seems that it is not possible to have CC and BCC in an email with HTML body, for example, since you have to explicitly set “to” field after mailComposer builds the message:

mailComposer.buildMessage(function(mailBuildError, messageSource) {
    var dataToSend = {
      to: recipients[0],
      message: messageSource
    };

    mgSender.messages().sendMime(dataToSend, function (error, response) {
    ...

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Comments:8

github_iconTop GitHub Comments

2reactions
Christilutcommented, Mar 20, 2018

For those still running into this (like I just did):

As per the Mailgun documentation, you have to add the BCC addresses to the TO addresses. However Mailgun will remove them from the TO address list and your BCC recipients will not see any other BCC addresses.

If you use mailcomposer, make sure you don’t add the BCC field because then your BCC recipients will see all addresses.

1reaction
fabyeahcommented, Oct 27, 2015

@bojand This should be reopened. I have the same problem, You HAVE to set the ‘to’ field or no emails will be sent. But I ONLY want to send BCC emails! What do I do here, except looping the send function? Additionally defining all recipients in ‘to’ as explained in #9 doesn’t work for me either.

I’m using v0.7.0 via Meteor wrapper package gfk:mailgun-api https://github.com/gfk-ba/meteor-mailgun-api

Read more comments on GitHub >

github_iconTop Results From Across the Web

CC and BCC for MIME types · Issue #65
It seems that it is not possible to have CC and BCC in an email with HTML body, for example, since you have...
Read more >
What Is the Code behind email's BCC and CC?
CC simply stands for the familiar term “carbon copy.” In the context of email, a CCed email is a copy sent to an...
Read more >
What are cc and bcc in emails – and how to use them
Bcc means that email addresses stay private​​ In other words, the difference between cc and bcc is that both are used for sending...
Read more >
What Does CC and BCC Mean In Emails | How To Use Each
CC stands for “Carbon Copy” and BCC stands for “Blind Carbon Copy”. All are used to add the email addresses of the people...
Read more >
Difference between CC and BCC
It stands for Carbon Copy. It stands for Blind Carbon Copy. In CC, all recipients will be able to see each other mail...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found