Ops. Fix. Now message is fully html formated. I will think about a way around in order to save plain text and embeded images.
Or isn't it better to just work with html messages?
This commit is contained in:
parent
fe73f673e3
commit
40f76a01d0
|
@ -1857,7 +1857,7 @@ class MyForm(QtGui.QMainWindow):
|
||||||
fromAddress = str(self.ui.labelFrom.text())
|
fromAddress = str(self.ui.labelFrom.text())
|
||||||
subject = str(self.ui.lineEditSubject.text().toUtf8())
|
subject = str(self.ui.lineEditSubject.text().toUtf8())
|
||||||
message = str(
|
message = str(
|
||||||
self.ui.textEditMessage.document().toPlainText().toUtf8())
|
self.ui.textEditMessage.document().toHtml().toUtf8())
|
||||||
if self.ui.radioButtonSpecific.isChecked(): # To send a message to specific people (rather than broadcast)
|
if self.ui.radioButtonSpecific.isChecked(): # To send a message to specific people (rather than broadcast)
|
||||||
toAddressesList = [s.strip()
|
toAddressesList = [s.strip()
|
||||||
for s in toAddresses.replace(',', ';').split(';')]
|
for s in toAddresses.replace(',', ';').split(';')]
|
||||||
|
|
Reference in New Issue
Block a user