From 34986e1a99bb3fa6b62246151ad5ed05090e4f23 Mon Sep 17 00:00:00 2001 From: Loann Meignant Date: Fri, 10 Apr 2020 13:10:48 +0200 Subject: [PATCH] Modifying readme --- README.md | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index ad5b00d..bb02693 100644 --- a/README.md +++ b/README.md @@ -46,15 +46,21 @@ BMAIL_API_URL=the_api_url ```bash $template = (new BMailTemplate("** template_id **")) - ->sender("john.doe@gmail.com", 'John') - ->replyTo("jean.grey@gmail.com", 'Jean') + ->sender("john.doe@gmail.com", 'John OPTIONNAL') OPTIONNAL + ->replyTo("jean.grey@gmail.com", 'Jean OPTIONNAL') OPTIONNAL ->recipients([ - ['elvis@gmail.com', ['name' => 'Elvis']], - ['matthew@gmail.com', ['name' => 'Matthew', 'parameters' => ['key' => 'value']] + [ + 'elvis@gmail.com', [ + 'name' => 'Elvis' OPTIONNAL, + 'parameters' => ['key' => 'value'] OPTIONNAL + ] + ], + [ + 'robert@gmail.com' + ] ]) ->addRecipient('edward@gmail.com') - ->addRecipient("robert@gmail.com", ['name' => 'Rob', 'parameters' => ['key' => 'value']]) - ->parameters(['foo' => 'bar', 'foo' => 'fighter']) + ->parameters(['key1' => 'value1', 'key2' => 'value2']) ->addParameter('key', 'value'); ```