PDA

View Full Version : Is it possible to send html mails with attached inline images ?



slimittn
29th December 2010, 13:28
Hi,

i want to send mails with my application.

I tried the script in this thread : http://www.qtcentre.org/threads/2221-Sending-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.

high_flyer
29th December 2010, 13:51
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?

slimittn
30th December 2010, 06:00
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€.

slimittn
12th January 2011, 20:55
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.

high_flyer
13th January 2011, 07:40
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?

slimittn
13th January 2011, 09:23
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.

high_flyer
13th January 2011, 10:12
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).

slimittn
13th January 2011, 17:53
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.

high_flyer
13th January 2011, 19:23
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.

slimittn
14th January 2011, 09:54
Ok thanks High_Flyer.