Log message #4220289

# At Username Text
# Dec 27th 2019, 20:39 ashesh.social So we need any packages for that ?
# Dec 27th 2019, 20:38 ashesh.social How this will work
# Dec 27th 2019, 20:38 ashesh.social ```use Mailgun\Mailer\MailgunTrait;```
# Dec 27th 2019, 20:31 ashesh.social Very cool stuff !
# Dec 27th 2019, 20:28 challgren The MailgunTrait, MailgunMailer, and MailgunEmail just provide convenience for adding headers. The transport is what does the magic to send it via the HTTP API
# Dec 27th 2019, 20:27 ashesh.social You making me more curious ,:)
# Dec 27th 2019, 20:26 challgren ?
# Dec 27th 2019, 20:26 ashesh.social OMG
# Dec 27th 2019, 20:25 challgren The docs for 4.x need a lot of work but the functions all work and the transport is the main beast behind everything
# Dec 27th 2019, 20:24 ashesh.social yeah ok @challgren
# Dec 27th 2019, 20:23 challgren You can use the MailgunTrait, MailgunMailer, or MailgunEmail
# Dec 27th 2019, 20:22 challgren You can still use the old Email format but in CakePHP 5.x its going to be removed so the mailer is the best route
# Dec 27th 2019, 20:21 ashesh.social Super great @challgren will check out
# Dec 27th 2019, 20:21 challgren https://book.cakephp.org/4/en/core-libraries/email.html#creating-reusable-emails
# Dec 27th 2019, 20:20 ashesh.social Where I need to use the above code you sent
# Dec 27th 2019, 20:20 challgren What do you mean?
# Dec 27th 2019, 20:20 ashesh.social So where will the code be present
# Dec 27th 2019, 20:20 challgren Same config as 3.x
# Dec 27th 2019, 20:20 ashesh.social Oh great @challgren
# Dec 27th 2019, 20:19 challgren Thats my usage right now
# Dec 27th 2019, 20:19 slackebot <challgren>
# Dec 27th 2019, 20:19 ashesh.social Hey @challgren
# Dec 27th 2019, 20:19 challgren Create a new mailer and use the MailgunTrait
# Dec 27th 2019, 20:19 ashesh.social Was trying for a whole day with lot many things
# Dec 27th 2019, 20:18 ashesh.social Any good documentation to integrate mailgun into cakephp 4
# Dec 27th 2019, 20:18 ashesh.social Hey all
# Dec 27th 2019, 20:04 admad `$staticUrl . '?' . http_build_query($queryArray)`
# Dec 27th 2019, 19:21 devito when using redirect, is there a way i can leverage the query array in the options while passing in a static external url? or do i need to build the whole url and just pass that in?
# Dec 27th 2019, 18:19 challgren @ashesh.social use dev-master for cake 4.x still ironing out stuff for the 5.x release
# Dec 27th 2019, 16:05 dereuromark or keyField, valueField config would also work
# Dec 27th 2019, 16:03 alexdd55976 thanks
# Dec 27th 2019, 16:03 alexdd55976 totally forgot abozuut extraaact
# Dec 27th 2019, 15:55 ndm `->extract('internal_username')->toArray()`
# Dec 27th 2019, 15:51 alexdd55976 i just want the usernames
# Dec 27th 2019, 15:51 alexdd55976 ```$usernames = $this->find('list') ->select(['internal_username']) ->disableHydration() ->toArray();```
# Dec 27th 2019, 15:51 alexdd55976 i get this with fnd list
# Dec 27th 2019, 15:50 alexdd55976 ```Array ( [0] => 1 [1] => 2 )```
# Dec 27th 2019, 15:47 dereuromark you didnt use find(list), thats why you have a deep array here
# Dec 27th 2019, 15:47 dereuromark but tbh, the given list of key=>value usually should suffice.
# Dec 27th 2019, 15:47 dereuromark sure, array_keys() on the find list^^
# Dec 27th 2019, 15:46 alexdd55976 i only get this ```Array ( [0] => Array ( [internal_username] => maa ) [1] => Array ( [internal_username] => mal ) )```