Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. How to Set the From address in email composer using QtMobility

How to Set the From address in email composer using QtMobility

Scheduled Pinned Locked Moved Mobile and Embedded
1 Posts 1 Posters 1.0k Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • N Offline
    N Offline
    nivya
    wrote on last edited by
    #1

    Hi everyone,

    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.

    @void EmailComposer::createMessage(void)
    {
    QMessage message;

    message.setFrom(QMessageAddress(QMessageAddress::Email, "abcd@gmail.com"));
    message.setTo(QMessageAddress(QMessageAddress::Email, "xyz@gmail.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]

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved