cutelyst / simple-mail

An SMTP library written in C++ for Qt. Allows applications to send emails (MIME with text, html, attachments, inline files, etc.) via SMTP. Supports SSL and SMTP authentication.
GNU Lesser General Public License v2.1
213 stars 64 forks source link

comma in name (part of email address) is not handled correctly (it seams) #85

Closed eightdot closed 1 year ago

eightdot commented 2 years ago

calling

SimpleMail::Sender sender;
SimpleMail::MimeMessage message;
message.addTo(SimpleMail::EmailAddress("user@example.org", "surname, forename"));
sender.sendMail(message);

results in the following to header: To: surname, forename <user@example.org>

which should have been quoted or escaped afaick.

i tested with

python -m smtpd -n -c DebuggingServer 127.0.0.1:25

dantti commented 1 year ago

Just did a test and worked fine like this.