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. Set image in email body
Qt 6.11 is out! See what's new in the release blog

Set image in email body

Scheduled Pinned Locked Moved Mobile and Embedded
3 Posts 2 Posters 2.9k 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.
  • V Offline
    V Offline
    viral.parmar
    wrote on last edited by
    #1

    hi
    i have a image stored in QByteArray and i want that image to display in my email body...i have used setBody() function of QMessage ,but it not working..i think i have to first set my data type to MIME...

    any solution??

    Regards
    Viral Parmar

    1 Reply Last reply
    0
    • G Offline
      G Offline
      goetz
      wrote on last edited by
      #2

      I'd guess you will have to add some mime attachment with the image and maybe some HTML for the email body to link to the image.

      http://www.catb.org/~esr/faqs/smart-questions.html

      1 Reply Last reply
      0
      • V Offline
        V Offline
        viral.parmar
        wrote on last edited by
        #3

        i have used QMimeData to set the image as MIME ,but no effect some random text are diaplayed in mail body..

        Regards
        Viral Parmar

        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