set email address for person responsible for editorial content

@param   string  $managingEditor
@return  \stubbles\xml\rss\RssFeed
965337
public function setManagingEditor(string $managingEditor): self
    {
        if (!strstr($managingEditor, '@')) {
            $this->managingEditor = 'nospam@example.com (' . $managingEditor . ')';
        } else {
            $this->managingEditor = $managingEditor;
        }

        return $this;
    }
1000317
public function setEmailAddress($emailAddress)
    {
        if ($emailAddress != null)
        {
            if (filter_var(trim($emailAddress), FILTER_VALIDATE_EMAIL) === false)
            {
                throw new InvalidArgumentException($emailAddress . " is not a valid email address.");
            }
        }

        $this->emailAddress = $emailAddress;
    }
585794
public function setNotificationEmail($notificationEmail)
    {
        if (!empty($notificationEmail) && ctype_print($notificationEmail)) {
            $this->notificationEmail = trim($notificationEmail);
        }

        return $this;
    }
622776
public function setSubscriptionCount($active, $inactive)
    {
        $this->_subscriptionCount['active'] = $active;
        $this->_subscriptionCount['inactive'] = $inactive;
        return $this;
    }
1055594
public function setReplyToFromDefault() {
        $replyTo = self::getDefaultReplyTo();
        if($replyTo === null) {
            // require_once 'Zend/Mail/Exception.php';
            throw new Zend_Mail_Exception(
                'No default Reply-To Address set to use');
        }

        $this->setReplyTo($replyTo['email'], $replyTo['name']);

        return $this;
    }
1356209
public static function emailAdmin ($status, $msg)
	{
		
		// Check admin email constants are defined
		
		if (!defined ('EMAIL_FROM'))
		{
			status::Output ('ERROR', 'EMAIL_FROM not specified');
			return;
		}
		
		if (!defined ('AUTHOR_NAME'))
		{
			status::Output ('ERROR', 'AUTHOR_NAME not specified');
			return;
		}
		
		if (!defined ('AUTHOR_EMAIL'))
		{
			status::Output ('ERROR', 'AUTHOR_EMAIL not specified');
			return;
		}
		
		// Create email
		
		$email	= new Email;

		if (defined ('EMAIL_SMTP') && EMAIL_SMTP)
		{
			$email->setSMTPStream ();
		}
		else
		{
			$email->setPHPMail ();
		}
		
		// Set message
		
		$email->addHTML ("
			<p>CLI email from " . EMAIL_DOMAIN . ":<br />
			status: " . $status . "<br />
			message: " . nl2br ($msg) . "
			</p>
		");
		
		// Send to admin
		
		$email->addRecipient (AUTHOR_EMAIL, AUTHOR_NAME);

		if ($email->Send (EMAIL_FROM, 'CLI Message') && !\Sonic\Message::count ('error'))
		{
			return TRUE;
		}
		else
		{
			return FALSE;
		}
		
	}
466895
function onPublish( $attribute, $contentObject, $publishedNodes )
    {
        $user = eZUser::currentUser();
        $address = $user->attribute( 'email' );
        $userID = $user->attribute( 'contentobject_id' );

        $nodeIDList = eZSubtreeNotificationRule::fetchNodesForUserID( $user->attribute( 'contentobject_id' ), false );

        if ( $attribute->attribute( 'data_int' ) == '1' )
        {
            $newSubscriptions = array();
            foreach ( $publishedNodes as $node )
            {
                if ( !in_array( $node->attribute( 'node_id' ), $nodeIDList ) )
                {
                    $newSubscriptions[] = $node->attribute( 'node_id' );
                }
            }

            foreach ( $newSubscriptions as $nodeID )
            {

                $rule = eZSubtreeNotificationRule::create( $nodeID, $userID );
                $rule->store();
            }
        }
        else
        {
            foreach ( $publishedNodes as $node )
            {
                if ( in_array( $node->attribute( 'node_id' ), $nodeIDList ) )
                {
                    eZSubtreeNotificationRule::removeByNodeAndUserID( $user->attribute( 'contentobject_id' ), $node->attribute( 'node_id' ) );
                }
            }
        }
        return true;
    }
1099050
public function setMetaSubject(string $str): PdfInterface
    {
        $this->setProperty('metaSubject', $str);
        $this->mpdf->SetSubject($this->metaSubject);

        return $this;
    }
371951
public function setConfigAdminemail($v)
    {
        if ($v !== null) {
            $v = (string) $v;
        }

        if ($this->config_adminemail !== $v) {
            $this->config_adminemail = $v;
            $this->modifiedColumns[] = RemoteHistoryContaoPeer::CONFIG_ADMINEMAIL;
        }


        return $this;
    }
462290
public function setContent($editor, $html)
	{
		$this->load();

		$return = '';
		$results[] = $this->editor->onSetContent($editor, $html);

		foreach ($results as $result)
		{
			if (trim($result))
			{
				$return .= $result;
			}
		}

		return $return;
	}
133250
public function setToField() {

        // get the mapped recipient (valid because $this->isInboundEmailToEmailAddressMapToUser() is already done)
        $mappedRoutes = config('lasallecmsmailgun.inbound_map_mailgun_routes_with_user_email_address');

        foreach ($mappedRoutes as $route => $user) {

            // if "from" email address is the same as the route specified in the config...
            if ($this->request->input('recipient') == $route) {
                $userEmailAddress = $user;
            }
        }

        return $this->userRepository->findUserNameByEmail($userEmailAddress);
    }
743697
public function setTo($email, $name)
    {
        $this->_to[] = $this->formatHeader((string) $email, (string) $name);
        return $this;
    }
512529
public function setReplyTo($email, $name = null)
    {
        return parent::setReplyTo(
            $this->parseDomainPlaceholderAsPiwikHostName($email),
            $name
        );
    }
279997
public function setCoreWhichEditor($value)
    {
        $this->setFieldName('which_editor');
        $this->loadObject(true);
        $this->setFieldValue($value);

        return $this;
    }
224725
public function notifyResponsible($event)
    {
        // first email address should be admin@domain.com because from other email address mail can't be sent
        $from = [Yii::$app->params['email']['from'] => 'not-reply'];
        // add real sender
        $from[$this->author->email] = $this->author->name;
        // receiver
        $receiver = Yii::$app->params['email']['receiver']['comment'];
        $to = Yii::$app->params['email']['to'][$receiver];
        return Yii::$app->mailer->compose()
            ->setTo($to)
            ->setFrom($from)
            ->setSubject(Module::t('core', 'New comment for') . ' - ' . Lookup::item('CommentFor', $this->model))
            ->setTextBody($this->content)
            ->send();
    }
94094
public function addRSSFeed(string $rss, string $title): PageHead
    {
        $this->rss[] = ['href' => $rss, 'title' => $title];

        return $this;
    }
1135078
public function getContentManager()
    {
        if (null === $this->contentManager) {
            $this->contentManager = new Manager\ContentManager();
            $this->contentManager->setEditor($this);
        }

        return $this->contentManager;
    }