patte
1
Hi 
I use an SMTP server where the user name is not an e-mail address.
'email' => [
'transport' => [
'type' => 'smtp',
'host' => 'mail.agenturserver.de',
'port' => 465,
'security' => true,
'auth' => true,
'username' => 'd12345',
'password' => ''
]
],
With the data I now get the following error when I send the form.
"d12345" is not a valid email address
What needs to be changed here?
Thanks much!
Patrick
Do you have a stack trace? Sure it comes from the username in those transport settings?
patte
3
Oh, you mean Kirby doesnât necessarily need an e-mail address? Then Iâll look elsewhere - probably an SMTP thingâŚIâll check that out.
It seems like youâre trying to set the âfromâ email to the username. In this case, it has to be set separately.
If youâre sending email manually, you can just specify a different from email in the function call:
If youâre using DreamForm, which by default uses the username, you can set the from email manually in the config:
<?php
return [
'tobimori.dreamform' => [
'actions' => [
'email' => [
'from' => [
'email' => 'xxx@example.com',
'name' => 'Sender Name'
]
]
]
]
];
1 Like
patte
5
Hey Tobias,
Thank you so much - you made my day 
Everything is going perfectly - with the great DreamForm anyway!
Best
Patrick