Important: Please read the Qt Code of Conduct -

Set image in email body

  • 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??

  • 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.

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

Log in to reply