lib/classes/Swift/Transport/AbstractSmtpTransport.php
public function setLocalDomain($domain)
    {
        if ('[' !== substr($domain, 0, 1)) {
            if (filter_var($domain, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
                $domain = '['.$domain.']';
            } elseif (filter_var($domain, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
                $domain = '[IPv6:'.$domain.']';
            }
        }

        $this->domain = $domain;

        return $this;
    }
public function setLocalDomain($domain)
    {
        if ('[' !== substr($domain, 0, 1)) {
            if (filter_var($domain, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) {
                $domain = '['.$domain.']';
            } elseif (filter_var($domain, FILTER_VALIDATE_IP, FILTER_FLAG_IPV6)) {
                $domain = '[IPv6:'.$domain.']';
            }
        }

        $this->domain = $domain;

        return $this;
    }
public function setLocalDomain ( $ domain ) { if ( '[' !== substr ( $ domain , 0 , 1 ) ) { if ( filter_var ( $ domain , FILTER_VALIDATE_IP , FILTER_FLAG_IPV4 ) ) { $ domain = '[' . $ domain . ']' ; } elseif ( filter_var ( $ domain , FILTER_VALIDATE_IP , FILTER_FLAG_IPV6 ) ) { $ domain = '[IPv6:' . $ domain . ']' ; } } $ this -> domain = $ domain ; return $ this ; }
Set the name of the local domain which Swift will identify itself as.

This should be a fully-qualified domain name and should be truly the domain
you're using.

If your server does not have a domain name, use the IP address. This will
automatically be wrapped in square brackets as described in RFC 5321,
section 4.1.3.

@param string $domain

@return $this
Set the name of the local domain which Swift will identify itself as .