Hi,
In a website project, I’ve got two different forms which send an email when the user submit the form.
For these two forms, I would like to use two different email transport authentication.
If the form is submitted from page = A use :
'email' => [
'transport' => [
'type' => 'smtp',
'host' => 'smtp.xxx.com',
'port' => 587,
'security' => true,
'auth' => true,
'username' => 'toto@website.com',
'password' => '1234',
],
],
If the form is submitted from page = B use :
'email' => [
'transport' => [
'type' => 'smtp',
'host' => 'smtp.xxx.com',
'port' => 587,
'security' => true,
'auth' => true,
'username' => 'titi@website.com',
'password' => '5678',
],
],
Is there a solution to achieve this?