Trolltech Home | Qt-interest Home | Recent Threads | All Threads | Author | Date
All threads index page 2

Qt-interest Archive, April 2007
"Connect" qt with mail applications


Message 1 in thread

Hello,

First of all excuse me if this topic has been questioned before... well, 
I'm searching how to "connect" my Qt program  with the predefined email 
application (MS Outlook or Mozilla Thunderbird), so my program could 
request to the MUA (outlook or thunderbird) to generate a new email 
(with attachments).

The Plataform is MS Windows 2000/XP but it will be nice if it works with 
Linux too.

Could some one tell me (or write me :) where can I find some information 
to achieve this?

Thank you and happy day!

-- 
 [ signature omitted ] 

Message 2 in thread

On 4/4/07, BeavieS <beavies@xxxxxxxxx> wrote:
> Hello,
>
> First of all excuse me if this topic has been questioned before... well,
> I'm searching how to "connect" my Qt program  with the predefined email
> application (MS Outlook or Mozilla Thunderbird), so my program could
> request to the MUA (outlook or thunderbird) to generate a new email
> (with attachments).
>
> The Plataform is MS Windows 2000/XP but it will be nice if it works with
> Linux too.
>
> Could some one tell me (or write me :) where can I find some information
> to achieve this?

On Windows, MAPI is the interface you need. This mailing list thread
from last year might help:

http://lists.trolltech.com/qt-interest/2006-02/msg00861.html

-- 
 [ signature omitted ] 

Message 3 in thread

BeavieS schrieb:
> First of all excuse me if this topic has been questioned before... well, 
> I'm searching how to "connect" my Qt program  with the predefined email 
> application (MS Outlook or Mozilla Thunderbird), so my program could 
> request to the MUA (outlook or thunderbird) to generate a new email 
> (with attachments).
> 
> The Plataform is MS Windows 2000/XP but it will be nice if it works with 
> Linux too.

You don't mention the version of Qt you're using; starting with 4.2 
there's QDesktopServices available, which should do what you want when 
you give it a "mailto:"; URL (at least the docs say so).

Martin

-- 
 [ signature omitted ] 

Message 4 in thread

2007/4/5, Martin Gebert <Martin.Gebert@xxxxxxxxxxxxxxxxxxxxxxxxxxx>:
>
> BeavieS schrieb:
> > First of all excuse me if this topic has been questioned before... well,
> > I'm searching how to "connect" my Qt program  with the predefined email
> > application (MS Outlook or Mozilla Thunderbird), so my program could
> > request to the MUA (outlook or thunderbird) to generate a new email
> > (with attachments).
> >
> > The Plataform is MS Windows 2000/XP but it will be nice if it works with
> > Linux too.
>
> You don't mention the version of Qt you're using; starting with 4.2
> there's QDesktopServices available, which should do what you want when
> you give it a "mailto:"; URL (at least the docs say so).
>
> Martin
>
> --
> To mail me in private, please remove the -NOSPAM- part from the address
> above.
>
> Ultimate Truths in software development # 3:
> PEBKAC



Sorry!, i'm using Qt v.4.2.0, but well, thank you because your answers have
been very helpfull!!!


-- 
 [ signature omitted ] 

Message 5 in thread

BeavieS wrote:
> 2007/4/5, Martin Gebert <Martin.Gebert@xxxxxxxxxxxxxxxxxxxxxxxxxxx>:
> 
>     BeavieS schrieb:
>      > First of all excuse me if this topic has been questioned
>     before... well,
>      > I'm searching how to "connect" my Qt program  with the predefined
>     email
>      > application (MS Outlook or Mozilla Thunderbird), so my program could
>      > request to the MUA (outlook or thunderbird) to generate a new email
>      > (with attachments).
>      >
>      > The Plataform is MS Windows 2000/XP but it will be nice if it
>     works with
>      > Linux too.
> 
>     You don't mention the version of Qt you're using; starting with 4.2
>     there's QDesktopServices available, which should do what you want when
>     you give it a "mailto:"; URL (at least the docs say so).
> 
>     Martin
> 
>     --
>     To mail me in private, please remove the -NOSPAM- part from the address
>     above.
> 
>     Ultimate Truths in software development # 3:
>     PEBKAC
> 
> 
> 
> Sorry!, i'm using Qt v.4.2.0, but well, thank you because your answers 
> have been very helpfull!!!

Using "mailto:"; works fine on Linux or Windows, unless you need add to 
an attachment and then you need to use the Microsoft MAPI API on Windows 
(yuk!). Don't know how you add attachments on Linux.

best regards

Andy Brice
http://www.perfecttableplan.com

--
 [ signature omitted ]