I am now implementing this in SwiftMailer. However, SwiftMailer seems to ignore the "name" parameter in the $Recipients->addCC() call and tacitly replaces it by the name specified in the $Recipients->addTo() call.
If I use another addTo instead of addCC, then the name specified in the first addTo is used for both copies!
Is this intentional, and if so, why?
Is there another way to have a different name for the CC adress, without sending the same message twice?
[edited/added:]
I now see that the above is not quite accurate. What actually happens is that the contents of the CC field is replaced by a copy of the contents of the To field. So if I do the following:
Code: Select all
...->addTo ("addr1@isp1.tld", Addressee1);
...->addCC ("addr2@isp2.tld", Addressee2); Code: Select all
...->addTo ("addr1@isp1.tld", Addressee1);
...->addCC ("addr1@isp1.tld", Addressee1);Am I doing something wrong, or is this a bug? In the latter case, will it be remedied in version 4?