I just found a bug in the mail extension. I have been trying to send an email using smtp authentication but however much I tried the username and password would not come through.
Here is the sql to setup the authentication:
select 'dbr.mail.sender','firstname.lastname@example.org','Email sender';
select 'dbr.mail.smtp.user', 'myuser', 'abettersecretthanthis';
select 'email@example.com', 'My Name', 'Test smtp','Hello hello';
This did not work. After looking through the code I realized that there is no code for dbr.mail.smtp.user in the mail extension, but for dbr.mail.smtp.authentication instead.
My temporary fix was adding the following in extensions.php and changing user to authentication in my sql code.
array( 'cmd' => 'dbr.mail.smtp.authentication', // LOGIN (default), PLAIN, NTLM, CRAM-MD5 'user' => 1, 'password' => 1 ),
Can you please fix and clarify which parameter will be used, so my emails won't break on next upgrade.