Hello there
I just built my first contact form by following this guide: Guide Contact Form
Everything worked fine but I get an error when sending the form on my website (also tried it on my server): code 530
(indicates that the authentication failed)
This is my config file:
'email' => [
'transport' => [
'type' => 'smtp',
'host' => 'mail.cyon.ch',
'port' => 465,
'security' => true,
]
],
I followed the instructions here: config
Do I have to add the part with the authentication?
'auth' => true,
'username' => '...',
'password' => '...',
And is it safe to store my password and username there or do I have to be more cautious? (I’m quite new to PHP, excuse me)