bnomei / kirby3-postmark

Send transactional E-Mail with Postmark
MIT License
5 stars 0 forks source link

Required Auth Sendername #2

Closed bnomei closed 2 years ago

bnomei commented 2 years ago

https://forum.getkirby.com/t/postmark-app-for-all-emails/24389/8?u=bnomei

@texnixe

Ok, after creating an account myself, I have now found what the problem is. You need a verified sender name, which you have to set with the auth config options:

return [
    // …other settings
    'auth' => [
        'methods' => ['password', 'password-reset'],
        'challenge' => [
            'email' => [
                'from'     => 'myverifiedsender@mydomain.com',
                'fromName' => 'My Name',
            ]
        ]
    ],
    'email' => [
        'transport' => [
            'type' => 'smtp',
            'host' => 'smtp.postmarkapp.com',
            'port' => 587,
            'security' => true,
            'auth' => true,
            'username' => 'username',
            'password' => 'password',
        ]
    ]
];