public function setSenderName($name)
    {
        if (!$this->validateHeaderFieldValue($name)) {
            throw new EmailValidationException(__('Sender Name can not contain carriage return or newlines.'));
        }

        $this->_sender_name = $name;
    }
public function setSenderName($name)
    {
        if (!$this->validateHeaderFieldValue($name)) {
            throw new EmailValidationException(__('Sender Name can not contain carriage return or newlines.'));
        }

        $this->_sender_name = $name;
    }
public function setSenderName ( $ name ) { if ( ! $ this -> validateHeaderFieldValue ( $ name ) ) { throw new EmailValidationException ( __ ( 'Sender Name can not contain carriage return or newlines.' ) ) ; } $ this -> _sender_name = $ name ; }
Sets the sender-name.

@throws EmailValidationException
@param string $name
The name emails will be sent from.
@return void
Sets the sender - name .