Bug 456435

Summary: The sending account configured for an Identity is not used when the CTRL+ENTER shortcut is used to send an email
Product: [Applications] kmail2 Reporter: missoline
Component: composerAssignee: kdepim bugs <kdepim-bugs>
Status: REPORTED ---    
Severity: normal    
Priority: NOR    
Version First Reported In: 5.20.2   
Target Milestone: ---   
Platform: Other   
OS: Linux   
Latest Commit: Version Fixed In:
Sentry Crash Report:

Description missoline 2022-07-07 09:39:25 UTC
SUMMARY

The sending account configured for an Identity is not used when the CTRL+ENTER shortcut is used to send an email.

STEPS TO REPRODUCE
1. Create two SMTP account in Kmail Options (say SMTP1 and SMTP2)
2. Create a Sender identity in Kmail's Options configured to use SMTP1
3. Create another Sender Identity by cloning the first identity
4. Modify the 2nd sender identity to make it use SMTP2
5. Compose a new message and send it using CTRL+ENTER (instead of using the mouse)

OBSERVED RESULT

The message is sent using SMTP1

EXPECTED RESULT

The message should be sent using SMTP2

SOFTWARE/OS VERSIONS
Linux/KDE Plasma: openSUSE Tumbleweed 20220625
(available in About System)
KDE Plasma Version: 5.25.1
KDE Frameworks Version: 5.95.0
Qt Version: 5.15.2
Kernel version: 5.18.6-1-default (64-bit)