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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/SMTP.pmod:67:    throw(({"Failed to connect to mail server.\n",backtrace()}));    }       if(readreturncode()/100 != 2)    throw(({"Connection refused by SMTP server.\n",backtrace()}));       if(catch(cmd("EHLO "+gethostname())))    cmd("HELO "+gethostname(), "greeting failed.");    }    -  void send_message(string from, string *to, string body) +  void send_message(string from, array(string) to, string body)    {    cmd("MAIL FROM: <" + from + ">");    foreach(to, string t) {    cmd("RCPT TO: <" + t + ">");    }    cmd("DATA");    cmd(body+"\r\n.");    cmd("QUIT");    }