Results 1 to 3 of 3

Thread: How to programmatically add attachments to emails in Qt

  1. #1
    Join Date
    Nov 2010
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Smile How to programmatically add attachments to emails in Qt

    HI to everyone...........
    I hope all are doing good..........

    I have an issue.....How to add the local file automatically to Outlook 2007 in Qt

    This feature is working for C# and VB.Net
    In C# and VB.Net , they used built-in function to add attachments to emails

    I searched in Qt for Built in Function , but its not there..
    If any one of you knows this feature..plese help me.. or in some other solution..please help me.

    Qt code i used here is:

    QDesktopServices:penUrl(QUrl("mailto:?Attached=""C:\Right.png"" "));

    It is giving the Command line argument error.

    I hope some one will help in this feature...

    Thanks in Advance..

    Praveena
    KeepSmiling..BeHappy..alwalz

  2. #2
    Join Date
    Jan 2006
    Location
    Germany
    Posts
    84
    Thanks
    7
    Thanked 2 Times in 1 Post
    Qt products
    Qt3 Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: How to programmatically add attachments to emails in Qt

    hi,

    i think that outlook does not support attachement in mailto: tag. you have to start a new proces (QProcess) and add the attached file
    as an argument.

    regards,
    jh

  3. #3
    Join Date
    Jul 2009
    Posts
    74
    Thanks
    2
    Thanked 6 Times in 6 Posts

    Default Re: How to programmatically add attachments to emails in Qt

    you can't send mails with attachments with mailto....

    you need to create an activex object of Outlook... and create the email with attachments from there...

    Anyway is not a easy task...

    you should see examples and utils about activex in qt

    ....

    maybe the qprocess option is enough for you

Similar Threads

  1. Download attachments and Base64 coding
    By Altertwin in forum Qt Programming
    Replies: 1
    Last Post: 14th March 2010, 17:12
  2. A pair of emails questions
    By Raccoon29 in forum Qt Programming
    Replies: 4
    Last Post: 28th December 2009, 23:10
  3. QWidget Attachments
    By BingoMaster in forum Newbie
    Replies: 4
    Last Post: 27th September 2009, 21:07
  4. SMTP & Attachments
    By cioannou in forum General Programming
    Replies: 2
    Last Post: 26th January 2006, 12:40

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.