//Create message
$message = (new TemplatedEmail())
//Set sender
- ->from(new Address($this->config['contact']['mail'], $this->config['contact']['name']))
+ ->from(new Address($this->config['contact']['mail'], $this->config['contact']['title']))
//Set recipient
//XXX: remove the debug set in vendor/symfony/mime/Address.php +46
->to(new Address($mail['context']['recipient_mail'], $mail['context']['recipient_name']))
//Create message
$message = (new TemplatedEmail())
//Set sender
- ->from(new Address($this->config['contact']['mail'], $this->config['contact']['name']))
+ ->from(new Address($this->config['contact']['mail'], $this->config['contact']['title']))
//Set recipient
//XXX: remove the debug set in vendor/symfony/mime/Address.php +46
->to(new Address($mail['context']['recipient_mail'], $mail['context']['recipient_name']))
//Create message
$message = (new TemplatedEmail())
//Set sender
- ->from(new Address($this->config['contact']['mail'], $this->config['contact']['name']))
+ ->from(new Address($this->config['contact']['mail'], $this->config['contact']['title']))
//Set recipient
//XXX: remove the debug set in vendor/symfony/mime/Address.php +46
->to(new Address($mail['context']['recipient_mail'], $mail['context']['recipient_name']))
'en-gb' => 'English'
],
'contact' => [
- 'name' => 'John Doe',
+ 'title' => 'John Doe',
'mail' => 'contact@example.com'
],
'login' => [
->arrayNode('contact')
->addDefaultsIfNotSet()
->children()
- ->scalarNode('name')->cannotBeEmpty()->defaultValue($defaults['contact']['name'])->end()
+ ->scalarNode('title')->cannotBeEmpty()->defaultValue($defaults['contact']['title'])->end()
->scalarNode('mail')->cannotBeEmpty()->defaultValue($defaults['contact']['mail'])->end()
->end()
->end()