-
Notifications
You must be signed in to change notification settings - Fork 782
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
.addCc("email@domian.com) not sending mail #162
Comments
There is a breaking change that needs to be implemented in this library that will default to using our Web API parameters as opposed to currently using the SMTP API Header for A fix for the time being is to explicitly use the Web API parameters: email.to = ['foo@example.com', 'bar@example.com'];
email.addCc('baz@example.com'); // same as email.cc = 'baz@example.com' Appologies for the confusion. |
Hi, I have the same issue with cc and bcc, i try with email.cc and email.addCc and no email its sent to the cc addres.. |
Hi @juanpgaviria, I just confirmed that it does indeed work with these methods. var sg = require('sendgrid')(process.env.SENDGRID_APIKEY);
var email = new sg.Email();
email.to = 'foo@example.com';
email.subject = 'Testing CC + BCC';
email.from = 'me@example.com';
email.text = 'Testing';
email.addCc('bar@example.com');
email.bcc = 'baz@example.com';
sg.send(email, function(err, json) {
if (err) console.error(err);
console.log(json);
}); Please test with the latest version of the library and share a code sample if it still doesn't work. |
it works.. i was adding the bcc as array.. i think that the issue.. after 3 jack daniel's anything can happend. thanks ;). |
Haha no worries! I realized that we were missing |
Hi there! I believe I may have found a related bug. If email.addTo("foo@example.com") is called before email.addCc('bar@example.com') then the cc email is not sent.
|
I have the same problem, cannot send email to bcc or cc email address! |
One more problem, i try to to as @eddiezane way and it works but in the cc or bcc the substitution not working! Only body content display! |
I am still having this issue as well. Whether I add the cc using setCcs or addCc, it displays in the email that the To recipient receives, but the recipient in the CC address doesn't receive it. |
@jacquesgingras, @ohhdear, @mbernier Looking into this right now. It appears that when the @tushdante, can you verify that and update the lib to not set |
@kunal732 @tushdante we'll get this prioritized in the backlog to get it taken care of. Thanks! |
yep i had the same issue. with "sendgrid": "^1.9.2", This way just send "to" and ignores "bcc"
This way send to both
so "it works" :) |
When using .addCc("email@domain.com), the email is never actually sent to the CC address. However it is listed in the email CC field on the email that is sent to the .addTo() recipient.
The text was updated successfully, but these errors were encountered: