Mails : info

Fetching mail data

The info() method returns the value of a specified key in the headers data set.

The example below provides an insight into how this is done.
Sample: Fetching mail header data
  <?php

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

        'client' => ['name' => 'Foo']

    ]);

    $mailer->info('client');  // returns: ['name'=>'Foo']