public function setEnvelopeFrom($envelope_from = null)
    {
        if (preg_match('%[\r\n]%', $envelope_from)) {
            throw new EmailValidationException(__('The Envelope From Address can not contain carriage return or newlines.'));
        }

        $this->_envelope_from = $envelope_from;
    }
public function setEnvelopeFrom($envelope_from = null)
    {
        if (preg_match('%[\r\n]%', $envelope_from)) {
            throw new EmailValidationException(__('The Envelope From Address can not contain carriage return or newlines.'));
        }

        $this->_envelope_from = $envelope_from;
    }
public function setEnvelopeFrom ( $ envelope_from = null ) { if ( preg_match ( '%[\r\n]%' , $ envelope_from ) ) { throw new EmailValidationException ( __ ( 'The Envelope From Address can not contain carriage return or newlines.' ) ) ; } $ this -> _envelope_from = $ envelope_from ; }
Sets the envelope_from address. This is only available via the API, as it is an expert-only feature.

@since 2.3.1
@param null $envelope_from
@throws EmailValidationException
@return void
Sets the envelope_from address . This is only available via the API as it is an expert - only feature .