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

version» Context lines:

pike.git/lib/modules/Protocols.pmod/SMTP.pmod:50:    "SMTP: "+reply_codes[r]+"\n", backtrace()}));    }    return r;    }       void create(void|string server, int|void port)    {    if(!server)    {    // Lookup MX record here (Using DNS.pmod) -  object dns=master()->resolv("Protocols")["DNS"]->client(); -  server=dns->get_primary_mx(gethostname()); +  server=master()->resolv("Protocols.DNS.get_primary_mx")(gethostname());    }       if(!port)    port = 25;       if(!server || !connect(server, port))    {    throw(({"Failed to connect to mail server.\n",backtrace()}));    }