Configuring TCP ID, UDP ID, and DNS server to send emails by using SMTP
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);
?>