Commit d3d281e9 authored by Laurent Montel's avatar Laurent Montel 😁

Add list of emails

parent 0bc1eb1d
......@@ -2441,16 +2441,16 @@ void KMComposerWin::doSend(MessageComposer::MessageSender::SendMethod method,
params.setSubject(subject());
params.setHtmlMail(mComposerBase->editor()->textMode() == MessageComposer::RichTextComposerNg::Rich);
params.setIdentity(mComposerBase->identityCombo()->currentIdentity());
//TODO add more
const QStringList recipients = { mComposerBase->to().trimmed(), mComposerBase->cc().trimmed(), mComposerBase->bcc().trimmed()};
params.setAddresses(recipients);
if (!mPluginEditorCheckBeforeSendManagerInterface->execute(params)) {
return;
}
setEnabled(false);
// Validate the To:, CC: and BCC fields
const QStringList recipients = QStringList() << mComposerBase->to().trimmed() << mComposerBase->cc().trimmed() << mComposerBase->bcc().trimmed();
// Validate the To:, CC: and BCC fields
AddressValidationJob *job = new AddressValidationJob(recipients.join(QStringLiteral(", ")), this, this);
const KIdentityManagement::Identity &ident = KMKernel::self()->identityManager()->identityForUoid(mComposerBase->identityCombo()->currentIdentity());
QString defaultDomainName;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment