function PHPMailer::ServerHostname in SMTP Authentication Support 5
Same name and namespace in other branches
- 7.2 smtp.phpmailer.inc \PHPMailer::ServerHostname()
- 7 smtp.phpmailer.inc \PHPMailer::ServerHostname()
Returns the server hostname or 'localhost.localdomain' if unknown. @access private
Return value
string
2 calls to PHPMailer::ServerHostname()
- PHPMailer::CreateHeader in ./
smtp.module - Assembles message header. @access private
- PHPMailer::SmtpConnect in ./
smtp.module - Initiates a connection to an SMTP server. Returns false if the operation failed. @access private
File
- ./
smtp.module, line 1918 - Enables drupal to send email directly to an SMTP server using authentication. Uses the PHPMailer class by Brent R. Matzelle.
Class
- PHPMailer
- PHPMailer - PHP email transport class @package PHPMailer @author Brent R. Matzelle @copyright 2001 - 2003 Brent R. Matzelle
Code
function ServerHostname() {
if ($this->Hostname != "") {
$result = $this->Hostname;
}
elseif ($this
->ServerVar('SERVER_NAME') != "") {
$result = $this
->ServerVar('SERVER_NAME');
}
else {
$result = "localhost.localdomain";
}
return $result;
}