#4111 - Problem sending emails from group accounts when inbound email… #4168
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request is meant to help issue #4111 where the "From" dropdown list does not populate for SuiteCRM users that do not have Inbound Email Accounts setup for that user.
Description
This pull request is meant to populate Inbound Email Accounts of Group Accounts into that dropdown to allow sending from them. This way if there was a support@company.com group email setup they could send from it. The code also allows sending from that actual group email by looking up the corresponding email address from the Outbound Email Accounts and using those connection details to send if they are there (otherwise the system email is used). The reply_to_name and from_name in the outgoing email will be populated from the inbound email account chosen in the dropdown list.
Motivation and Context
It is my understanding that this feature has been broken since 7.9.1 and is something I wanted to use for my company in our recently installed version (7.9.4). I saw that other people were asking about it online as well (Github issues and in the forum).
How To Test This
Types of changes
Final checklist