Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
How to Set the From address in email composer using QtMobility
nivya last edited by
Am using Qt Mobility to compose some mail and send.
(Working on the windows embedded compact 7 with Qt 4.8 and QtMobility-1.2.0)
I designed a composer where u can set from address, To address, bcc, cc, attachments everything.
It works fine and sends the mail with the attachment.
message.setFrom(QMessageAddress(QMessageAddress::Email, "firstname.lastname@example.org")); message.setTo(QMessageAddress(QMessageAddress::Email, "email@example.com")); message.setSubject(m_subject); message.setBody(m_body); message.setType(QMessage::Email); message.appendAttachments(m_attachments); //service = new QMessageService; service.send(message);
But problem is it will always take my outlook address as my from address .
It wont take any other mail Ids.
Am trying to use QTcpSocket now to connect with some other smtp.(like smtp.gmail.com)
I dont have any idea for using the
Can anyone help me in this issue
Thanks In Advance
[Edit: @ tags and code formatting -- mlong]