Mails : authorized

checking authorized mails

The authorized() method is used to check if a mail has been permitted to send. page. An example is shown below.

Sample: Checking Authorized mails
    <?php

      $mailer = new Mailer;

      ... //other codes here
      
      $mailer->content('mail.template'); // can be defined in $mailer->sendmail()  
      
      $mailer->authorize(true);
      
      if($mailer->authorized()){

          // run this block if mail is authorized        

      }
    
To see more details about its usage check the authorize page