Transport info for emails – Sending Mails form Uberspace

Hey.
I saw this: Sending Emails via Sendgrid - #16 by chrisgwynne

@texnixe You were testing this send problem on Uberspace:

Yes, I can test on Uberspace later.

Edit: I just did and it worked with Userskit both with the settings above and setting security: 'ssl' and port: 465`.

I have a similar problem: I want to send a confermation and notification mail after a form is send.
Locally it works fine – tested in mailhog.

But on the server, it gave me a SFTP Error or since a few minutes its giving me Gateway Timeout

'email' => [
        'transport' => [
          'type' => 'smtp',
          'host' => 'SERVERNAME.uberspace.de',
          'port' => 465,
          'security' => "ssl",
          'auth' => true,
          'username' => 'HALLO@URL.COM',
          'password' => getenv('HALLO_KEY'),
          ]
      ],

Am I doing something wrong?
Do you @texnixe remember, how you made it to work, back then?

I don’t quite see how your issue relates to the Sendgrid one you linked to. Sendgrid is an email service provider.

Try setting security to true or tls for your chosen port, see

https://manual.uberspace.de/mail-access/#smtp

:sweat_smile: Ok. No, it has nothing to do with Sendgrid. I just saw that you used Uberspace and thought sending mails is sending mails…

Try setting security to true or tls for your chosen port, see

I have been there, done that.

But, while writing, I made it work.
turns out getenv() was not working… With the pw directly in the config it works.
So 465 and 'security' => true, works.

Sry, for the issue.