Mails : pull

Pulling mail data

The pull() method is used to pull the data set for server or header configurations. This makes it easier to know the current set data expected to be forwarded.

The example below provides an insight into how this is done.
Sample: Pulling mail configuration data

  <?php

    $mailer = new Mailer;
    
    $mailer->server('mail.server'); // load server config file  
    
    $mailer->setup('mail.setup') // load headers file

    $mailer->pull('server');  // return server data

    $mailer->pull('setup');  // return headers data