muquit / mailsend

A program to send mail via SMTP from command line
Other
297 stars 68 forks source link

mailsend Cc: and BCc: in -list-address list only sends To: , not Cc: or BCc: #102

Open LucMaN7 opened 8 years ago

LucMaN7 commented 8 years ago

Hello, emails to multiple recipients are visible in To: field despite being configured as follow in a text file:

Cc: user@domain.com BCc: user@domain.com

Most recipients should be in BCc: field.

Using mailsend v1.19

Thanks for the excellent product!

muquit commented 8 years ago

There could be some issues in that area, I will look at it as soon as get some time. Thanks.

muquit commented 8 years ago

I tested with smtp.gmail.com and it works the way I expected, none of the address in the list file shows up in the mail.

If you can figure out if some specific settings triggering the bug, I will look at it. It depends on the SMTP server how it will send the mail. If the server is adding all the addresses to To header, mailsend can not do anything about it. If mailsend is adding them to the To header, I will fix it.

In my test, I used -t and -f and did not use Cc or Bcc in the list file. $ cat list.txt example1@example.com example2@example.com example3@example.com example4@example.com

$ mailsend -v -t example@gmail.com -f example@gmail.com -list-address list.txt .... The verbose output from mailsend should be something like:

[C] MAIL FROM: <example@gmail.com>
[S] 250 2.1.0 OK xxxxxxxxxxx.13 - gsmtp
[C] RCPT TO: <example1@example.com>
[S] 250 2.1.5 OK xxxxxxxxxxx.13 - gsmtp
[C] RCPT TO: <example2@example.com>
[S] 250 2.1.5 OK xxxxxxxxxxx.13 - gsmtp
[C] RCPT TO: <example3@example.com>
[S] 250 2.1.5 OK xxxxxxxxxxx.13 - gsmtp
[C] RCPT TO: <example4@example.com>
[S] 250 2.1.5 OK xxxxxxxxxxx.13 - gsmtp
[C] DATA
[S] 354  Go ahead xxxxxxxxxxx.13 - gsmtp
Subject: testing mailsend
From: example@gmail.com
Date: Thu, 22 Sep 2016 15:25:22 -0400
To: example@gmail.com
....
....

Only the address in To: header is visible in the mail for all the recipients. I am planning to remove Cc and Bcc in the list file, they just create complexity without much gain.

Thanks.