Location: PHPKode > projects > EXtensible Production Suite (XPS) > xpsdev/helpers/xpm3/DOCUMENTATION/mail/host.html
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
body, pre {
	font-family: Verdana;
	font-size: 10pt;
<body bgcolor="#f1f3f5" topmargin="10" leftmargin="14">

XPM3_MAIL -> <i>boolean</i> <b>host</b> ( <i>string</i> hostname, <i>boolean</i> &havemx )
Returns TRUE if has been successfully set, FALSE if not.

This function "Host()" is used during the SMTP conversation in the "EHLO" or "HELO", using "client" and/or "relay" mail delivery.

<table border="0" bgcolor="white">
$m = new XPM3_MAIL;


// set
$m->Host('domain.tld', $havemx);

// print result
echo $havemx ? 'Ok.' : 'Doesn't have an MX zone!';

// unset
$m->Host('', $r);

<hr color="white">

[ <a style="color: blue; text-decoration: none" href="mailto:hide@address.com?subject=Comment XPM3_MAIL Host">Comments</a> ]

Last update: Friday, December 08, 2006


Return current item: EXtensible Production Suite (XPS)