设定为了向ESMTP发送邮件的TCP ID及UDP ID
void esmtp_setup(int $udp_id, int $tcp_id [, string $dns_server = “”[, bool $ip6 = false]])
none
<?php
include "/lib/sn_dns.php"; // including DNS library
include "/lib/sn_esmtp.php"; // including ESMTP library
// UDP 0 for DNS, TCP 1 for sending email, DSN server IP: 192.168.0.1
esmtp_setup(0, 1, "192.168.0.1");
// UDP 2 for DNS, TCP 3 for sending email, DSN server IP: system DNS server IP
esmtp_setup(2, 3);
// enable IPv6
esmtp_setup(0, 1, "", true);
?>