Skip to content
Snippets Groups Projects
Commit fca537cc authored by Mirar (Pontus Hagland)'s avatar Mirar (Pontus Hagland)
Browse files

added (cautious) \n -> \r\n converter for simple mail (it's suposed to be simple)

Rev: lib/modules/Protocols.pmod/SMTP.pmod:1.14
parent 4c741db7
No related branches found
No related tags found
No related merge requests found
......@@ -102,6 +102,8 @@ class client
void simple_mail(string to, string subject, string from, string msg)
{
if (search(msg,"\r\n")==-1)
msg=replace(msg,"\n","\r\n"); // *simple* mail /Mirar
send_message(parse_addr(from), ({ parse_addr(to) }),
(string)MIME.Message(msg, (["mime-version":"1.0",
"subject":subject,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment