pike.git / lib / modules / Protocols.pmod / SMTP.pmod

version» Context lines:

pike.git/lib/modules/Protocols.pmod/SMTP.pmod:79:    cmd("MAIL FROM: "+from);    foreach(to, string t)    cmd("RCPT TO: "+t);    cmd("DATA");    cmd(body+"\r\n.");    cmd("QUIT");    }       void simple_mail(string to, string subject, string from, string msg)    { -  send_message(from, ({ to }), +  array foo = MIME.tokenize(to); +  string bar = "<"+replace(((foo/({60}))[-1]/({62}))[0],64,"@")*""+">"; +  send_message(from, ({ bar }),    (string)MIME.Message(msg, (["mime-version":"1.0",    "subject":subject,    "from":from,    "to":to,    "content-type":    "text/plain;charset=iso-8859-1",    "content-transfer-encoding":    "8bit"])));    }   }