summaryrefslogtreecommitdiff
path: root/noncore/net/mail/composemail.cpp
Unidiff
Diffstat (limited to 'noncore/net/mail/composemail.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/net/mail/composemail.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/noncore/net/mail/composemail.cpp b/noncore/net/mail/composemail.cpp
index f680f5c..f532815 100644
--- a/noncore/net/mail/composemail.cpp
+++ b/noncore/net/mail/composemail.cpp
@@ -165,12 +165,13 @@ void ComposeMail::accept()
165 165
166 166
167 qDebug( "Sending Mail with " + 167 qDebug( "Sending Mail with " +
168 smtpAccounts.at( fromBox->currentItem() )->getAccountName() ); 168 smtpAccounts.at( fromBox->currentItem() )->getAccountName() );
169 Mail *mail = new Mail(); 169 Mail *mail = new Mail();
170 SMTPaccount *smtp = smtpAccounts.at( fromBox->currentItem() ); 170 SMTPaccount *smtp = smtpAccounts.at( fromBox->currentItem() );
171
171 mail->setMail( smtp->getMail() ); 172 mail->setMail( smtp->getMail() );
172 mail->setName( smtp->getName() ); 173 mail->setName( smtp->getName() );
173 174
174 if ( !toLine->text().isEmpty() ) { 175 if ( !toLine->text().isEmpty() ) {
175 mail->setTo( toLine->text() ); 176 mail->setTo( toLine->text() );
176 } else { 177 } else {
@@ -192,13 +193,13 @@ void ComposeMail::accept()
192 while ( it != NULL ) { 193 while ( it != NULL ) {
193 mail->addAttachment( it->getAttachment() ); 194 mail->addAttachment( it->getAttachment() );
194 it = (AttachViewItem *) it->itemBelow(); 195 it = (AttachViewItem *) it->itemBelow();
195 } 196 }
196 197
197 SMTPwrapper wrapper( settings ); 198 SMTPwrapper wrapper( settings );
198 wrapper.sendMail( *mail ); 199 wrapper.sendMail( *mail,checkBoxLater->isChecked() );
199 200
200 QDialog::accept(); 201 QDialog::accept();
201} 202}
202 203
203AttachViewItem::AttachViewItem( QListView *parent, Attachment *att ) 204AttachViewItem::AttachViewItem( QListView *parent, Attachment *att )
204 : QListViewItem( parent ) 205 : QListViewItem( parent )