library/core/class.email.php
public function From($SenderEmail = '', $SenderName = '', $bOverrideSender = FALSE) {
      if ($SenderEmail == '') {
         $SenderEmail = C('Garden.Email.SupportAddress', '');
         if (!$SenderEmail) {
            $SenderEmail = 'noreply@'.Gdn::Request()->Host();
         }
      }

      if ($SenderName == '')
         $SenderName = C('Garden.Email.SupportName', C('Garden.Title', ''));
      
      if($this->PhpMailer->Sender == '' || $bOverrideSender) $this->PhpMailer->Sender = $SenderEmail;
      
      ob_start();
      $this->PhpMailer->SetFrom($SenderEmail, $SenderName, FALSE);
      ob_end_clean();
      return $this;
   }
public function From($SenderEmail = '', $SenderName = '', $bOverrideSender = FALSE) {
      if ($SenderEmail == '') {
         $SenderEmail = C('Garden.Email.SupportAddress', '');
         if (!$SenderEmail) {
            $SenderEmail = 'noreply@'.Gdn::Request()->Host();
         }
      }

      if ($SenderName == '')
         $SenderName = C('Garden.Email.SupportName', C('Garden.Title', ''));
      
      if($this->PhpMailer->Sender == '' || $bOverrideSender) $this->PhpMailer->Sender = $SenderEmail;
      
      ob_start();
      $this->PhpMailer->SetFrom($SenderEmail, $SenderName, FALSE);
      ob_end_clean();
      return $this;
   }
public function From ( $ SenderEmail = '' , $ SenderName = '' , $ bOverrideSender = FALSE ) { if ( $ SenderEmail == '' ) { $ SenderEmail = C ( 'Garden.Email.SupportAddress' , '' ) ; if ( ! $ SenderEmail ) { $ SenderEmail = 'noreply@' . Gdn :: Request ( ) -> Host ( ) ; } } if ( $ SenderName == '' ) $ SenderName = C ( 'Garden.Email.SupportName' , C ( 'Garden.Title' , '' ) ) ; if ( $ this -> PhpMailer -> Sender == '' || $ bOverrideSender ) $ this -> PhpMailer -> Sender = $ SenderEmail ; ob_start ( ) ; $ this -> PhpMailer -> SetFrom ( $ SenderEmail , $ SenderName , FALSE ) ; ob_end_clean ( ) ; return $ this ; }
Allows the explicit definition of the email's sender address & name.
Defaults to the applications Configuration 'SupportEmail' & 'SupportName'
settings respectively.

@param string $SenderEmail
@param string $SenderName
@return Email
Allows the explicit definition of the email s sender address & name . Defaults to the applications Configuration SupportEmail & SupportName settings respectively .