mirror of
https://github.com/anope/anope.git
synced 2026-06-28 11:46:38 +02:00
Use utf-8 encoding for outgoing email (#286)
This commit is contained in:
@@ -41,6 +41,8 @@ void Mail::Message::Run()
|
||||
else
|
||||
fprintf(pipe, "To: \"%s\" <%s>\n", mail_to.c_str(), addr.c_str());
|
||||
fprintf(pipe, "Subject: %s\n", subject.c_str());
|
||||
fprintf(pipe, "Content-Type: text/plain; charset=UTF-8;\n");
|
||||
fprintf(pipe, "Content-Transfer-Encoding: 8bit\n");
|
||||
fprintf(pipe, "\n");
|
||||
fprintf(pipe, "%s", message.c_str());
|
||||
fprintf(pipe, "\n.\n");
|
||||
|
||||
Reference in New Issue
Block a user