sendgrid / smtpapi-nodejs

SendGrid's smtpapi library in NodeJS
https://sendgrid.com
MIT License
50 stars 79 forks source link

addBcc #5

Closed thebergamo closed 10 years ago

thebergamo commented 10 years ago

I'm use the sendgrid's a for node, but if I need send mails but needed occult others people who are receiving the email. Normally we using BCC. I think in add the functionality to the code, but in smtpapi I don't see a mention to bcc, It's better if I implemented this only in the sendgrid's node api?

motdotla commented 10 years ago

Yeah, it's best that instead you just use multiple addTo like the following:

var header     = new smtpapi();
header.addTo('you@youremail.com');
header.addTo('other@otheremail.com');

In the nodejs library it looks like this:

var email     = new sendgrid.Email(); 
email.addTo('foo@bar.com');
email.addTo('another@another.com');
sendgrid.send(email, function(err, json) { });

[1] resource

thebergamo commented 10 years ago

Yeah, I use the addTo, but when I use the addTo, all peoples in the To see to others peoples.

In this case I need send an email and others peoples see only you as a receiver.

An example:

my recivers is: mmk@mail.com, kmm@mail.com and kmkm@mail.com mmk@mail.com No need to know that this email is also kmkm@mail.com or kmm@mail.com too.

Sending a normal email I add the users in field Bcc not in To.

motdotla commented 10 years ago

So our addTo won't actually show all the names. Are you positive that is what is happening? Can you forward me an example of that email so I can take a look?

thebergamo commented 10 years ago

Well, I check again about it. Maybe I was wrong... No Yeah, I wrong. Sorry. My logic not save me now. =)

Thanks for readiness in help me and sorry for my mistake.

_Marcos Vinicius Bérgamo http://www.linkedin.com/profile/view?id=144314576&trk=tab_pro_ C: +55 11 96067-7771 http://www.marcosbergamo.com http://www.marcosbergamo.com/

2014-06-03 21:12 GMT-03:00 Scott Motte notifications@github.com:

So our addTo won't actually show all the names. Are you positive that is what is happening? Can you forward me an example of that email so I can take a look?

— Reply to this email directly or view it on GitHub https://github.com/sendgrid/smtpapi-nodejs/issues/5#issuecomment-45038291 .

motdotla commented 10 years ago

No problem. It's different than expected behavior so I totally understand. Closing this.