mirror of
https://github.com/anope/anope.git
synced 2026-07-05 01:13:12 +02:00
Insert a new line between the subject and message body when sending mail.
Required for RFC 2822 compliancy. Reported by jrmu via IRC.
This commit is contained in:
@@ -41,6 +41,7 @@ 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, "\n");
|
||||
fprintf(pipe, "%s", message.c_str());
|
||||
fprintf(pipe, "\n.\n");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user