设定向SMTP传送邮件的TCP账号及UDP账号
void smtp_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_smtp.php"; // including SMTP library
// UDP 0 for DNS, TCP 1 for sending email, DSN server IP: 192.168.0.1
smtp_setup(0, 1, "192.168.0.1");
// UDP 2 for DNS, TCP 3 for sending email, DSN server IP: system DNS server IP
smtp_setup(2, 3);
// enable IPv6
smtp_setup(0, 1, "", true);
?>