mailhog / mhsendmail

sendmail for MailHog
MIT License
253 stars 60 forks source link

Client does not handle CC or BCC #20

Open AGhost-7 opened 7 years ago

AGhost-7 commented 7 years ago

I am trying to use this command line utility to send emails with some recipients cc'd and bcc'd. The client does set the headers properly but it only sends the email to the from recipient as far as I can tell. Here's an example:

mhsendmail --smtp-addr='app:9000' --from=from@localhost <<BODY
From: from@localhost
To: to@localhost
CC: cc@localhost
BCC: bcc@locahost

Example
BODY

I am only seeing one RCPT TO from tcpflow when I run this.

elieux commented 5 years ago

Just want to mention that the Bcc header should also be stripped from the message before sending it, see the description of -t of sendmail.