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