I am using uniform and kirby to send a contact form via mailgun.
My understanding is you can no longer send using the mailgun api via uniforms service options. So I have added a transport option in the site config:
'email' => [
'transport' => [
'type' => 'smtp',
'port' => 587,
'security' => true,
'host' => 'smtp.mailgun.org',
'auth' => true,
'username' => 'postmaster@me.co.uk',
'password' => '**',
],
I now get:
There was an error sending the form: SMTP connect() failed. Troubleshooting · PHPMailer/PHPMailer Wiki · GitHub
Am i missing something? is it possible to send via the api?