Results 1 to 10 of 10

Thread: Is it possible to send html mails with attached inline images ?

  1. #1
    Join Date
    Dec 2010
    Location
    Tunisia
    Posts
    21
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Is it possible to send html mails with attached inline images ?

    Hi,

    i want to send mails with my application.

    I tried the script in this thread : http://www.qtcentre.org/threads/2221...email-using-Qt.

    But it doesn't work for me.

    I was very happy when i find the Qxt library which have in his Network module an SMTP Class. I succeed to send mail with it but no as i want to.

    I can send html mails without attachment & plain text mails with attachment but can't send html mails with attachment. I readed some RFC's tried to change the content-type etc.. but still can't do this.

    So is there a way to do this ?

    I have also printed the SMTP RFC but it is too long and i don't understand it.

    So i hope that it is a simple solution.

    Thanks.

  2. #2
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Is it possible to send html mails with attached inline images ?

    in the post you linked to there is this link as well:
    http://www.vmime.org/pages/Documentation
    From a short look at the doc, it looks they support attachments without regard to the type of message (plain text or not).
    Have you looked at it?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  3. The following user says thank you to high_flyer for this useful post:

    slimittn (30th December 2010)

  4. #3
    Join Date
    Dec 2010
    Location
    Tunisia
    Posts
    21
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Is it possible to send html mails with attached inline images ?

    Thanks i have looked at it now. And, as you have said, it seems to do what i want but to create a proprietary application i must buy it for 99€.
    Last edited by slimittn; 30th December 2010 at 07:19.

  5. #4
    Join Date
    Dec 2010
    Location
    Tunisia
    Posts
    21
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Is it possible to send html mails with attached inline images ?

    Quote Originally Posted by high_flyer View Post
    in the post you linked to there is this link as well:
    http://www.vmime.org/pages/Documentation
    From a short look at the doc, it looks they support attachments without regard to the type of message (plain text or not).
    Have you looked at it?
    Since i have read this post i try to install the VMime Library on Windows and i still can't do it with any tool. And i think it will be more difficult to install it on Qt.

    I think that this library solves my problem if i can install it. So can you please more facilitate what should i do to install it on Qt on Both Windows and Linux ?

    Thanks.

  6. #5
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Is it possible to send html mails with attached inline images ?

    So can you please more facilitate what should i do to install it on Qt on Both Windows and Linux ?
    Not more than what the lib documentation says.
    But as far as I can see, the lib comes as code, so all you have to do is compile it, and then normally link against it...

    And i think it will be more difficult to install it on Qt.
    Qt is a library.
    You do not install on it anything.
    You just link against it.
    Are you sure you understand what linking vs installing is?
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  7. #6
    Join Date
    Dec 2010
    Location
    Tunisia
    Posts
    21
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Is it possible to send html mails with attached inline images ?

    Not more than what the lib documentation says.
    But as far as I can see, the lib comes as code, so all you have to do is compile it, and then normally link against it...
    The documentation don't show how to (install/link) SASL and and GnuTLS lib on MinGW etc.. it consider that you have already a compatible environment for compiling the lib.

    What would i have when i compile the library ? a dll file (under window of sure) and .so (under linux) or what ?

    Qt is a library.
    You do not install on it anything.
    You just link against it.
    Are you sure you understand what linking vs installing is?
    I thought that Qt is a Framework(a group of libraries and tools) ..

    I'm not sure to understand what linking vs installing is.

    Thank you for your responses.

  8. #7
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Is it possible to send html mails with attached inline images ?

    The documentation don't show how to (install/link) SASL and and GnuTLS lib on MinGW etc.. it consider that you have already a compatible environment for compiling the lib.
    Building and linking is the same as for any other lib.
    I am not sure what help you need here.
    If you don't know how to build a project, then that problems is beyond the topic of this forum, and is really too basic to be explained over a forum post - you will have to read and learn how to build a lib.
    What would i have when i compile the library ? a dll file (under window of sure) and .so (under linux) or what ?
    If you build it as a dynamic lib, then a *.dll + *.lib under windows and *.so under unix/linux.

    I thought that Qt is a Framework(a group of libraries and tools) ..
    Correct.
    And you do not install on it anything, you just use it (use = link against it).

    I'm not sure to understand what linking vs installing is.
    Installing you do to a ready built binary, or set of binaries so that you can run them.
    Linking is when you link against a binary (usually a static/dynamic lib) when you build your project and/or when your binary (usually an application) links at runtime against another binary (usually a dynamic lib).
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  9. The following user says thank you to high_flyer for this useful post:

    slimittn (13th January 2011)

  10. #8
    Join Date
    Dec 2010
    Location
    Tunisia
    Posts
    21
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Is it possible to send html mails with attached inline images ?

    Quote Originally Posted by high_flyer View Post
    If you don't know how to build a project, then that problems is beyond the topic of this forum, and is really too basic to be explained over a forum post - you will have to read and learn how to build a lib.
    Thank you high_flyer.

    Where can i read and learn about how to build a lib ?

    ..

    When i said :

    The documentation don't show how to (install/link) SASL and and GnuTLS lib on MinGW etc.. it consider that you have already a compatible environment for compiling the lib.
    i mean that the documentation said that to install the lib under windows you should use MinGW - MSyS and run 'config' and 'make' and 'make install' to compile it.

    but to make that you should first install GnuSASL lib and GnuTLS lib on MSyS and that is another problem.

    And if i succeed to compile it under MinGW - MSyS i don't know how to use it under Qt.

  11. #9
    Join Date
    Jan 2006
    Location
    Munich, Germany
    Posts
    4,714
    Thanks
    21
    Thanked 418 Times in 411 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Is it possible to send html mails with attached inline images ?

    Well, you don't know quite a bit of basic stuff, that you need if you want to code with this lib, or any other for that matter.
    You just have no other choice but to learn the basics first, and that takes time.
    There is nothing any one ca do to change that, and this forum is not to help in such matters.
    You better google on non Qt issues you need, and find forums that help with such matters.
    For specific questions about Qt issues, you are welcome to post here any time.
    ==========================signature=============== ==================
    S.O.L.I.D principles (use them!):
    https://en.wikipedia.org/wiki/SOLID_...iented_design)

    Do you write clean code? - if you are TDD'ing then maybe, if not, your not writing clean code.

  12. #10
    Join Date
    Dec 2010
    Location
    Tunisia
    Posts
    21
    Thanks
    6
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Is it possible to send html mails with attached inline images ?

    Ok thanks High_Flyer.

Similar Threads

  1. [Qxt] Ho to send attachment with html message ?
    By slimittn in forum Qt Programming
    Replies: 7
    Last Post: 19th June 2011, 00:01
  2. Http server : send images
    By fitzy in forum Qt Programming
    Replies: 1
    Last Post: 2nd November 2009, 13:04
  3. GIF or MNG images for use in html for QTextBrowser
    By manojmka in forum Qt Programming
    Replies: 3
    Last Post: 2nd January 2008, 17:30
  4. Loading images in html in a QTextBrowser
    By BasicPoke in forum Newbie
    Replies: 1
    Last Post: 6th June 2007, 22:51
  5. getting images out of html
    By hijinks in forum Qt Programming
    Replies: 1
    Last Post: 16th June 2006, 00:17

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.