Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
To send out email from platform one can only use SMTP services where SMTP username is an actual email address (email@example.com). Amazon Simple Email Service (and many others) have usernames that don't contain '@' sign at all, Amazon SES has usernames that look like this:
AKIAJZ2SHHT7XXXXXXXX
To solve this issue I propose a fix where one can configure additional parameter "fromEmail" and this is used as fromEmail instead of username. And since we're here I propose also one other additional field "fromName" to be configured as the display name of the sender (can configure organization name to be used there).
I think it is best to package this new functionality into GmailBackedPlatformEmailService as it everything remains backward compatible with existing installations and they can benefit from being able to set fromName.
I have already created and tested code modifications (I will create a pull request shortly).
In the flyway scripts - when new configuration fields "fromEmail" and "fromName" are created - SQL query looks up the value of "username" and uses that for initial value for both. So no configuration will break but after the changes have been applied the administrator can change these values.
The good part is that community app doesn't need any new code - it picks up new fields automatically: