unjudder/zf2-mail — pull request #12 by ojhaujjwal (2013-11-07 08:56:23+00:00)
Title: Update Email.php

Setting receiver name name was not possible previously. So, i used to call_user_func_array.
```php
$mailer = $serviceLocator->get('Uj\Mail\Email');
$mailer->send('module/nameOfEmailTpl', array(
'to' => array('customer@domain.tld', 'customer_name'), // or just 'customer@domain.tld'
'from' => 'service@your-service.tld', // or array('service@service.tld', 'service_name')
'subject' => 'What ever - Our Customer Services',
));
```

I created some more methods to make it easy to use like `createMessage`, `getMessage` etc..
```php
$mailer->createMessage('module/nameOfEmailTpl');
$message = $mailer->getMessage();
$message->SetFrom('customer@domain.tld');
$message->SetTo('service@your-service.tld');
$mailer->send();
```

I hope you like it!